[Bug 11427] New: should allow use of xml:id for XHTML5

http://www.w3.org/Bugs/Public/show_bug.cgi?id=11427

           Summary: should allow use of xml:id for XHTML5
           Product: HTML WG
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HTML5 spec (editor: Ian Hickson)
        AssignedTo: ian@hixie.ch
        ReportedBy: sandals@crustytoothpaste.net
         QAContact: public-html-bugzilla@w3.org
                CC: mike@w3.org, public-html-wg-issue-tracking@w3.org,
                    public-html@w3.org


Because the XML serialization of HTML5 does not require or specify a DOCTYPE
(and therefore, a DTD), generic XML processing tools have no way of determining
the proper attribute to use as an ID.  This causes problems when using e.g.
XInclude with the "element" xpointer, which uses the ID to determine the
subtree to include.  I use this currently to include relevant portions of XHTML
into an Atom feed, and it is broken with XHTML5.

Currently, the specification is silent about whether xml:id is permitted at all
and if so, what its interaction is with id.  I suggest that xml:id be permitted
and be preferred over id for the XML serialization, while being forbidden in
the HTML serialization.  Whatever the decision may be, please make it clear in
the text.

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Monday, 29 November 2010 14:29:52 UTC