W3C home > Mailing lists > Public > public-html-bugzilla@w3.org > January 2011

[Bug 11910] @id values in polyglot markup should be XML-valid (or not?)

From: <bugzilla@jessica.w3.org>
Date: Fri, 28 Jan 2011 13:44:15 +0000
To: public-html-bugzilla@w3.org
Message-Id: <E1PiocZ-0005xd-JE@jessica.w3.org>

David Carlisle <davidc@nag.co.uk> changed:

           What    |Removed                     |Added
                 CC|                            |davidc@nag.co.uk

--- Comment #1 from David Carlisle <davidc@nag.co.uk> 2011-01-28 13:44:15 UTC ---
(In reply to comment #0)

> However, in XML, the value of an @id, has the validity constrataints that it
> must meet XML's name production, which amongst other things means that the
> first character cannot be a number. 

This is only the case if the id attribute is of type ID.  Since (most) of the
polyglot valid doctype usage would not point to a resolvable DTD at all I think
that it would make sense to assume all attributes are CDATA for the purposes of
this document, and also, if ever a dtd for html5 were to be produced that tried
to approximate the polyglot  rules it should define id to be CDATA. However I
don't think that the polyglot spec should depend on dtd at all since there is
unlikely to be a normative html dtd.

So I don't think that this spec need say anything about id attributes other
than the general comments about attributes (white space and other character
normalization/quoting issues)


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 Friday, 28 January 2011 13:44:17 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 16:31:04 UTC