[Bug 8036] New: HTMLOptionsCollection should inherit from HTMLCollection

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

           Summary: HTMLOptionsCollection should inherit from HTMLCollection
           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


In browsers that expose global interface objects, the options collection object
either is or inherits from HTMLCollection, thus allowing changes to
HTMLCollection.prototype to affect it. In HTML5, it does not inherit, so it
will not be affected by HTMLCollection.prototype changes. This seems like a
needless change in behavior.

I think it would be better for compatibility to make HTMLOptionCollection
inherit
from HTMLCollection, add the extra methods, and define the differences in
operation behavior in prose. Note: the change I suggest would require making
HTMLCollection.namedItem return "object" instead of "Element".

See also bug 8035.


-- 
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 Friday, 23 October 2009 22:42:58 UTC