Re: Conformance of SVG content in HTML

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 UTC