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

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

           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:

http://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-A6C9094
http://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-getElBTNNS

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:

http://dev.w3.org/html5/spec/Overview.html#dom-document-getelementsbyname
http://dev.w3.org/html5/spec/Overview.html#dom-document-getelementsbyclassname

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


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