[Bug 15200] New: HTMLCollection string methods should return multiple matches

https://www.w3.org/Bugs/Public/show_bug.cgi?id=15200

           Summary: HTMLCollection string methods should return multiple
                    matches
           Product: WebAppsWG
           Version: unspecified
          Platform: PC
        OS/Version: Windows NT
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DOM Core
        AssignedTo: annevk@opera.com
        ReportedBy: glenn@zewt.org
         QAContact: member-webapi-cvs@w3.org
                CC: mike@w3.org, www-dom@w3.org


When HTMLCollection methods which take a string as an argument have multiple
matches, most implementations return an array-like object.  Although this can
only happen with a nonconforming DOM, the spec should reflect this.

Implementations are mixed between NodeList and HTMLCollection, but all tested
browsers return an array of some kind (with a couple strange exceptions) except
for Firefox, which always returns a single item.

(To be clear, no change should be made for when a single result is returned.)

Test at https://zewt.org/~glenn/test-htmlcollection.html; results at
https://zewt.org/~glenn/test-htmlcollection-results.html.

-- 
Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

Received on Thursday, 15 December 2011 02:35:15 UTC