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

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

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)


David

-- 
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