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 10075 - specify that polyglot docs do not contain xml:space or xml:base attributes
Summary: specify that polyglot docs do not contain xml:space or xml:base attributes
Status: RESOLVED FIXED
Alias: None
Product: HTML WG
Classification: Unclassified
Component: pre-LC1 HTML/XHTML Compat. Authoring Guide (ed: Eliot Graff) (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: Eliot Graff
QA Contact: HTML WG Bugzilla archive list
URL: http://dev.w3.org/html5/spec/elements...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-03 23:06 UTC by Michael[tm] Smith
Modified: 2010-10-05 13:07 UTC (History)
5 users (show)

See Also:


Attachments

Description Michael[tm] Smith 2010-07-03 23:06:45 UTC
The xml:space and xml:base attributes have effects in documents parsed as XML but do not have effects in documents parsed as text/html. The HTML5 spec therefore defines them as invalid in text/html documents.
Comment 1 Henri Sivonen 2010-07-09 06:37:41 UTC
xml:space and xml:base are OK on SVG and MathML elements.
Comment 2 Eliot Graff 2010-07-09 23:57:32 UTC
Added section 7.1 to spec:

7.1 Disallowed Attributes
The following attributes are not allowed in polyglot markup. These attributes have effects in documents parsed as XML but do not have effects in documents parsed as text/html. The HTML5 spec therefore defines them as invalid in text/html documents. [HTML5] 

xml:space
xml:base

Thanks for the feedback!
Comment 3 Eliot Graff 2010-07-10 00:03:10 UTC
Also added a note:

Note that the xml:space and xml:base attributes are allowed on SVG and MathML elements.