[Bug 14145] Could we define the id attribute so as to allow multiple unique ids to point to the same DOM element, by separating the names given in the value by spaces?

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

Thaddee TYL <thaddee.tyl@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |thaddee.tyl@gmail.com

--- Comment #1 from Thaddee TYL <thaddee.tyl@gmail.com> 2011-09-14 10:52:50 UTC ---
The specification currently says:

"This specification doesn't preclude an element having multiple IDs, if other
mechanisms (e.g. DOM Core methods) can set an element's ID in a way that
doesn't conflict with the id attribute."

It also says:

"The value [of an ID attribute] must not contain any space characters."

… and later:

"[…] user agents must associate the element with the given value (exactly,
including any space characters)"

The current state in Google Chrome, Firefox and Opera (at least) is that space
characters are not allowed in IDs: if they have a space in their value, you
cannot refer to them at all, even if it is a trailing space.

-- 
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 Wednesday, 14 September 2011 10:52:52 UTC