W3C home > Mailing lists > Public > www-tag@w3.org > November 2009

HTML 5 integration of SVG and MathML addresses ISSUE-33/mixedUIXMLNamespace-33?

From: Dan Connolly <connolly@w3.org>
Date: Tue, 10 Nov 2009 22:56:03 -0600
To: www-tag@w3.org
Cc: "Michael(tm) Smith" <mike@w3.org>, Maciej Stachowiak <mjs@apple.com>
Message-ID: <1257915363.16492.160.camel@pav.lan>
John, Noah, TimBL, Henry,

Have you looked at the integration of MathML and SVG into HTML 5?

John, I'm interested in your take, as both an HTML WG
member and a TAG member. I also note that Nokia
provided an editor, Lasse Pajunen, for http://www.w3.org/TR/WICD/ ;
don't feel obliged to represent a Nokia position in the TAG,
but if he's not too far down the hall, I suppose you might
naturally cross paths.

Noah, I'm interested in your take, as you provided the TAG
a sort of survey of the space around CDF and your experience
with Lotus notes etc. seems relevant.
http://lists.w3.org/Archives/Public/www-tag/2005Oct/0040

Henry, I'd like this to cross your radar since you're
chairing the 19 Nov TAG teleconference. On 8 Sep,
Maciej said the issue is all but resolved; HTML WG has no
plans to discuss this issue further as a group.
http://lists.w3.org/Archives/Public/public-html-wg-issue-tracking/2009Sep/0002.html
I don't think it's a "now or never" situation, but
if the 19 Nov agenda isn't full, maybe this fits.


TimBL, you have talked about more general mechanisms in this
space...

This design seems OK to me. There isn't a general-purpose mechanism
for mixing other UI-related namespaces in the spec, but any mechanism
of that sort that should come along should be consistent with
the HTML 5 design, IMO. (I gather XBL and/or XBL2 propose designs
in this space; they seem to be in the someday pile.)
That is: I don't think the HTML 5 design completely addresses
our mixed UI namespace issue, but I'm OK with constraining
any solution to this issue to be compatible with the HTML 5 design.

The HTML 5 design puts MathML elements in the MathML namespace
(and likewise SVG) with no syntactic cost to authors:

[[

Here is an example of the use of MathML in an HTML document:

<!DOCTYPE html>
<html>
 <head>
  <title>The quadratic formula</title>
 </head>
 <body>
  <h1>The quadratic formula</h1>
  <p>
   <math>
    <mi>x</mi>
    <mo>=</mo>
    <mfrac>
     <mrow>
      <mo form="prefix">−</mo> <mi>b</mi>
      <mo>±</mo>
      <msqrt>
       <msup> <mi>b</mi> <mn>2</mn> </msup>
       <mo>−</mo>
       <mn>4</mn> <mo>⁢</mo> <mi>a</mi> <mo>⁢</mo> <mi>c</mi>
      </msqrt>
     </mrow>
     <mrow>
      <mn>2</mn> <mo>⁢</mo> <mi>a</mi>
     </mrow>
    </mfrac>
   </math>
  </p>
 </body>
</html>
]]
 -- http://dev.w3.org/html5/spec/the-canvas-element.html#mathml

[[
9.2.5.10 The "in body" insertion mode
Status: Last call for comments

When the insertion mode is "in body", tokens must be handled as follows:

A start tag whose tag name is "math"
        
        Reconstruct the active formatting elements, if any.
        
        Adjust MathML attributes for the token. (This fixes the case of
        MathML attributes that are not all lowercase.)
        
        Adjust foreign attributes for the token. (This fixes the use of
        namespaced attributes, in particular XLink.)
        
        Insert a foreign element for the token, in the MathML namespace.
]]
  -- http://dev.w3.org/html5/spec/syntax.html#parsing-main-inbody


For reference:
ISSUE-33 mixedUIXMLNamespace-33 
Composability for user interface-oriented XML namespaces
http://www.w3.org/2001/tag/group/track/issues/33


p.s. I stuck this in tracker as ACTION-332.


-- 
Dan Connolly, W3C http://www.w3.org/People/Connolly/
gpg D3C2 887B 0F92 6005 C541  0875 0F91 96DE 6E52 C29E
Received on Wednesday, 11 November 2009 04:56:06 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 26 April 2012 12:48:18 GMT