W3C home > Mailing lists > Public > public-html-bugzilla@w3.org > October 2009

[Bug 8036] New: HTMLOptionsCollection should inherit from HTMLCollection

From: <bugzilla@wiggum.w3.org>
Date: Fri, 23 Oct 2009 22:42:54 +0000
To: public-html-bugzilla@w3.org
Message-ID: <bug-8036-2486@http.www.w3.org/Bugs/Public/>
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 23 October 2009 22:42:58 GMT