This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 11523 - xhtml namespace declarations on html nested within in foreign content
Summary: xhtml namespace declarations on html nested within in foreign content
Status: RESOLVED FIXED
Alias: None
Product: HTML WG
Classification: Unclassified
Component: LC1 HTML/XHTML Compatibility Authoring Guide (ed: Eliot Graff) (show other bugs)
Version: unspecified
Hardware: PC Windows NT
: P2 normal
Target Milestone: ---
Assignee: Eliot Graff
QA Contact: HTML WG Bugzilla archive list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-10 12:58 UTC by David Carlisle
Modified: 2011-08-04 05:07 UTC (History)
4 users (show)

See Also:


Attachments

Description David Carlisle 2010-12-10 12:58:11 UTC
5.1 Element-Level Namespaces
says that the only namespace declarations used should be on <html> <svg> and <math> but the xhtml namespace must be declared on any html elements used as children of svg or mathml elements.

so

<math xmlns=".....">.....<mtext>...<b xmlns="http..xhtml">zzz</b>...</mtext>...

otherwise the html parser will put the <b> in the xhtml namespace (and it will work) and the xml parser will put <b> in the mathml namespace (and it won't work)
Comment 1 Eliot Graff 2010-12-29 19:40:00 UTC
Section 5.1 has been rewritten to include this paragraph:

Polyglot markup declares the default namespaces on the root HTML element <html>, the root SVG element <svg>, and the root MathML element <math>, and on any HTML elements used as children of SVG or MathML elements. Polyglot markup does not declare any other default or prefixed element namespace, because [HTML5] does not natively support the declaring of any other default or prefixed element namespace. 


I believe that this satisfies the request of this bug.

Thanks for you continued feedback.

Eliot
Comment 2 Michael[tm] Smith 2011-08-04 05:06:51 UTC
mass-move component to LC1
Comment 3 Michael[tm] Smith 2011-08-04 05:07:16 UTC
mass-move component to LC1