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 10197 - xml:space is not listed as a global attribute
Summary: xml:space is not listed as a global attribute
Status: CLOSED WONTFIX
Alias: None
Product: HTML WG
Classification: Unclassified
Component: pre-LC1 HTML5 spec (editor: Ian Hickson) (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: contributor
QA Contact: HTML WG Bugzilla archive list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-18 12:05 UTC by Rouven We
Modified: 2010-10-04 14:57 UTC (History)
6 users (show)

See Also:


Attachments

Description Rouven We 2010-07-18 12:05:18 UTC
Section 3.2.3 and its subsections don't mention xml:space as a global attribute for XHTML documents.
Comment 1 Ian 'Hixie' Hickson 2010-09-08 07:09:28 UTC
EDITOR'S RESPONSE: This is an Editor's Response to your comment. If you are satisfied with this response, please change the state of this bug to CLOSED. If you have additional information and would like the editor to reconsider, please reopen this bug. If you would like to escalate the issue to the full HTML Working Group, please add the TrackerRequest keyword to this bug, and suggest title and text for the tracker issue; or you may create a tracker issue yourself, if you are able to do so. For more details, see this document:
   http://dev.w3.org/html5/decision-policy/decision-policy.html

Status: Rejected
Change Description: no spec change
Rationale: Indeed. Why would they?
Comment 2 Julian Reschke 2010-09-08 09:23:35 UTC
One reason that comes to mind is that it's allowed in XHTML1, and it's not clear why it's a good thing to remove it.
Comment 3 Rouven We 2010-09-11 10:42:14 UTC
While I consider xml:space presentational it is allowed on any element by XML 1.0 (just like xml:lang, which is mentioned). Also it is mentioned as an attribute in section 8.1.2.3.

So clearly it is a attribute "common to and may be specified on all HTML elements".
Comment 4 Ian 'Hixie' Hickson 2010-09-28 01:28:06 UTC
EDITOR'S RESPONSE: This is an Editor's Response to your comment. If you are satisfied with this response, please change the state of this bug to CLOSED. If you have additional information and would like the editor to reconsider, please reopen this bug. If you would like to escalate the issue to the full HTML Working Group, please add the TrackerRequest keyword to this bug, and suggest title and text for the tracker issue; or you may create a tracker issue yourself, if you are able to do so. For more details, see this document:
   http://dev.w3.org/html5/decision-policy/decision-policy.html

Status: Rejected
Change Description: no spec change
Rationale: It's not the job of language specifications of languages that use the XML syntax to remind the author of every last XML feature, especially features that have no effect (such as xml:space).

To address specific points raised above:

 - xml:space isn't removed, it's just not relevant.
 - it's mentioned as an attribute in the parsing section to make parsing work, but that's deep in a user-agent specific section, so I'm not sure that matters. (The same section talks about many things in SVG and XLink, but doesn't discuss them either.)
 - xml:space can't be specified in HTML elements in text/html.
Comment 5 Julian Reschke 2010-09-28 06:49:41 UTC
Ian, can you please clarify whether it's conforming or not?

If it is, it needs to be mentioned. If it is not, then this seems to be an incompatible change from XHTML 1.0.
Comment 6 Ian 'Hixie' Hickson 2010-09-28 07:27:23 UTC
EDITOR'S RESPONSE: This is an Editor's Response to your comment. If you are satisfied with this response, please change the state of this bug to CLOSED. If you have additional information and would like the editor to reconsider, please reopen this bug. If you would like to escalate the issue to the full HTML Working Group, please add the TrackerRequest keyword to this bug, and suggest title and text for the tracker issue; or you may create a tracker issue yourself, if you are able to do so. For more details, see this document:
   http://dev.w3.org/html5/decision-policy/decision-policy.html

Status: Rejected
Change Description: no spec change
Rationale: Please ask the XML working group, since they invented it. xml:space has nothing to do with HTML.

(Note that "incompatible changes" are only of interest if they break real legacy content. Compatibility with previous versions of specs is uninteresting and of no concern.)
Comment 7 Julian Reschke 2010-09-28 07:58:05 UTC
Again, can you please clarify whether it's conforming or not?

Validator.nu accepts it. Should I report a bug over there?
Comment 8 Henri Sivonen 2010-09-28 12:35:09 UTC
Allowing xml:space makes it easier to edit XHTML5 in oXygen and possibly other XML editors that use xml:space to control source line wrapping. I suggest permitting xml:space on any element in the http://www.w3.org/1999/xhtml namespace and mentioning that xml:space can't be serialized in text/html.
Comment 9 Ian 'Hixie' Hickson 2010-09-28 17:42:24 UTC
EDITOR'S RESPONSE: This is an Editor's Response to your comment. If you are satisfied with this response, please change the state of this bug to CLOSED. If you have additional information and would like the editor to reconsider, please reopen this bug. If you would like to escalate the issue to the full HTML Working Group, please add the TrackerRequest keyword to this bug, and suggest title and text for the tracker issue; or you may create a tracker issue yourself, if you are able to do so. For more details, see this document:
   http://dev.w3.org/html5/decision-policy/decision-policy.html

Status: Partially Accepted
Change Description: no spec change
Rationale: It's not our job to permit it or not. It's defined by XML, and the XML specification says it's allowed. It would be a layering violation to have any conformance criteria about it.

I've added a paragraph explaining this since apparently the XML spec isn't a good enough reference (??).
Comment 10 Ian 'Hixie' Hickson 2010-09-28 17:50:42 UTC
http://html5.org/tools/web-apps-tracker?from=5526&to=5527
Comment 11 Julian Reschke 2010-09-28 18:10:40 UTC
(In reply to comment #9)
> Rationale: It's not our job to permit it or not. It's defined by XML, and the
> XML specification says it's allowed. It would be a layering violation to have
> any conformance criteria about it.

Actually, it is. XML defines what it is, but it's up to the vocabulary definition to state where it's allowed (and with what values).
Comment 12 Ian 'Hixie' Hickson 2010-09-28 19:27:26 UTC
EDITOR'S RESPONSE: This is an Editor's Response to your comment. If you are satisfied with this response, please change the state of this bug to CLOSED. If you have additional information and would like the editor to reconsider, please reopen this bug. If you would like to escalate the issue to the full HTML Working Group, please add the TrackerRequest keyword to this bug, and suggest title and text for the tracker issue; or you may create a tracker issue yourself, if you are able to do so. For more details, see this document:
   http://dev.w3.org/html5/decision-policy/decision-policy.html

Status: Rejected
Change Description: no spec change
Rationale: No, it's not. Please read the XML spec. It clearly uses RFC2119 terms to allow the use of the attribute.
Comment 13 Rouven We 2010-09-28 19:43:52 UTC
I'm satisfied with the explanation given by Ian. Time to end the discussion.
Comment 14 Julian Reschke 2010-09-28 19:50:19 UTC
"A special attribute named xml:space may be attached to an element to signal an intention that in that element, white space should be preserved by applications. In valid documents, this attribute, like any other, MUST be declared if it is used."

The equivalent of "valid" in the context of HTML5 is the prose describing valid documents.

The new text now allows xml_space everywhere, whereas it was allowed only on certain elements in XHTML 1.0. This is a change that the differences document should mention then.