From 6d393b52e4d4414004828051f7dba94e4075a652 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Wang?= Date: Wed, 22 Nov 2023 15:15:33 +0100 Subject: [PATCH] Rewrite section for SVG/HTML: - convert it to examples and referring to HTML/SVG spec instead. - `requiredExtension` is preserved, as that's in browsers/tests but not in the SVG spec yet. - extend the annotation-xml example to show one can embed SVG/HTML too. Closes #195 --- examples/example-semantics.html | 27 +++++++++++++++ spec.html | 61 +++++---------------------------- 2 files changed, 35 insertions(+), 53 deletions(-) diff --git a/examples/example-semantics.html b/examples/example-semantics.html index fff2fc6..8f34571 100644 --- a/examples/example-semantics.html +++ b/examples/example-semantics.html @@ -12,5 +12,32 @@ 2 + + + + + + + + +
+
1
+
+
2
+
+
diff --git a/spec.html b/spec.html index 479ca21..9a1b032 100644 --- a/spec.html +++ b/spec.html @@ -576,22 +576,8 @@

Integration in the Web Platform

HTML and SVG

- When - parsing HTML documents - user agents must treat any tag name corresponding to a - MathML Core Element as belonging to the - MathML namespace. -

-

- Users agents must allow mixing HTML, SVG and MathML elements - as allowed by sections - HTML integration point, - MathML integration point, - tree construction - dispatcher, - MathML and - SVG - from [[HTML]]. + MathML can be mixed with HTML and SVG as described in the relevant + specifications [[HTML]] [[SVG]].

When evaluating the SVG [^svg/requiredExtensions^] @@ -609,46 +595,14 @@

HTML and SVG

HTML input element is used within the [^mtext^] to include an interactive input field inside a mathematical - formula. + formula. See also + for an example of SVG and HTML inside an [^annotation-xml^] + element.


             html-svg example
           
-          
-
    -
  • - The <math> element can be used at - position permitted for - flow content - (e.g. a - <foreignObject> element) - or phrasing content. -
  • -
  • - Any - phrasing content - can be used inside - [^mi^], - [^mo^], - [^mn^], - [^ms^] and - [^mtext^] - elements. -
  • -
  • - The <svg> element can be used inside - [^annotation-xml^] elements. -
  • -
  • - Any flow content - can be used inside - [^annotation-xml^] elements with - encoding - application/xhtml+xml or text/html. -
  • -
-

CSS styling

@@ -4677,8 +4631,9 @@

Semantics and Presentation

The following example shows how the fraction "one half" can be annotated with a textual annotation (LaTeX) or an XML annotation - (content MathML). These annotations are not intended to be rendered - by the user agent. + (content MathML), which are not intended to be rendered + by the user agent. This fraction is also annotated with equivalent + SVG and HTML markup.