W3C home > Mailing lists > Public > public-html-bugzilla@w3.org > March 2010

[Bug 9261] Copying all the attributes would include the "id" attribute. Doesn't this allow multiple duplicate ID attributes? This is what current browsers do, so I guess which element gets selected in this situation by CSS or getElementById should be specified in th

From: <bugzilla@wiggum.w3.org>
Date: Wed, 17 Mar 2010 19:43:07 +0000
To: public-html-bugzilla@w3.org
Message-Id: <E1Nrz91-00021c-DU@wiggum.w3.org>

Ms2ger <Ms2ger@gmail.com> changed:

           What    |Removed                     |Added
                 CC|                            |Ms2ger@gmail.com
             Status|NEW                         |RESOLVED
         Resolution|                            |WORKSFORME

--- Comment #1 from Ms2ger <Ms2ger@gmail.com>  2010-03-17 19:43:07 ---
Web DOM Core already defines that getElementById returns the first element:
<http://simon.html5.org/specs/web-dom-core#dom-document-getelementbyid>. For ID
selectors, the Selectors specification implicitly defines that all elements
with the given id are matched:

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, 17 March 2010 19:43:08 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 16:30:47 UTC