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

[Bug 8792] New: getElementsByName and getElementsByClassName allow returning the same NodeList repeatedly

From: <bugzilla@wiggum.w3.org>
Date: Thu, 21 Jan 2010 08:21:45 +0000
To: public-html-bugzilla@w3.org
Message-ID: <bug-8792-2486@http.www.w3.org/Bugs/Public/>

           Summary: getElementsByName and getElementsByClassName allow
                    returning the same NodeList repeatedly
           Product: HTML WG
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HTML5 spec bugs
        AssignedTo: dave.null@w3.org
        ReportedBy: mjs@apple.com
         QAContact: public-html-bugzilla@w3.org
                CC: ian@hixie.ch, mike@w3.org, public-html@w3.org

DOM Level 3 Core requires returning a new NodeList every time from
getElementsByTagName and getElementsByTagNameNS:


HTML5 does not have this requirement for getElementsByName and
getElementsByClassName, which would in theory allow the same NodeList to be
returned when called on the same Document or Element with the same parameters:


While I would like caching to be allowed, the divergence from DOM 3 Core seems

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 Thursday, 21 January 2010 08:21:47 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 20:01:09 UTC