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

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

From: <bugzilla@jessica.w3.org>
Date: Wed, 14 Sep 2011 10:52:50 +0000
To: public-html-bugzilla@w3.org
Message-Id: <E1R3n5G-0002jt-Rt@jessica.w3.org>
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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 20:02:03 UTC