W3C home > Mailing lists > Public > public-html@w3.org > October 2009

Re: Conformance of SVG content in HTML

From: Ian Hickson <ian@hixie.ch>
Date: Mon, 5 Oct 2009 03:42:32 +0000 (UTC)
To: Cameron McCormack <cam@mcc.id.au>
Cc: public-html@w3.org
Message-ID: <Pine.LNX.4.62.0910050341420.25383@hixie.dreamhostps.com>
On Wed, 16 Sep 2009, Cameron McCormack wrote:
>
> There doesn’t seem to be anything in HTML5 that defines the conformance
> of an HTML document in terms of any foreign content it contains.  I
> would expect the following to be a non-conforming HTML document:
> 
>   <!DOCTYPE html>
>   <title></title>
>   <svg><tspan/></svg>
> 
> since in SVG a <tspan> cannot be a child of <svg>, but as far as I can
> tell this currently is conforming.
> 
> I think there needs to be a statement like the following in the spec:
> 
>   Any subtree in an HTML document rooted by an svg element in the SVG
>   namespace, whose parent is not an SVG element, must be a conforming
>   SVG DOM subtree.
>
> where “conforming SVG DOM subtree” would link to
> http://dev.w3.org/SVG/profiles/1.1F2/publish/conform.html#ConformingSVGDOMSubtree
> (which I just added), or the appropriate place in TR-space once SVG 1.1
> Second Edition is published.

Doesn't SVG already require that any SVG element be used in a manner that 
matches the SVG subtree concept?


> Something similar should be added for MathML, too.

Ditto, but for MathML.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Monday, 5 October 2009 03:33:25 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 9 May 2012 00:16:49 GMT