W3C home > Mailing lists > Public > public-script-coord@w3.org > October to December 2012

[Bug 20225] don't allow overridden operations and attribute getters/setters to be invoked on descendant objects

From: <bugzilla@jessica.w3.org>
Date: Wed, 05 Dec 2012 21:00:47 +0000
To: public-script-coord@w3.org
Message-ID: <bug-20225-3890-RN4q0tdB0R@http.www.w3.org/Bugs/Public/>

Ian 'Hixie' Hickson <ian@hixie.ch> changed:

           What    |Removed                     |Added
                 CC|                            |ian@hixie.ch

--- Comment #5 from Ian 'Hixie' Hickson <ian@hixie.ch> ---
I meant this to be entirely a compile-time thing. The implementation of
HTMLCollection.namedItem() is going to have to know how to handle being applied
to HTMLCollection objects, HTMLPropertiesCollection objects, HTMLElement
objects, Date objects, you name it, already. All I'm saying is that when it's
applied to HTMLPropertiesCollection objects, instead of trying to do something
and potentially crashing because the rest of the code expects
HTMLPropertiesCollection objects to have their own namedItem and therefore
might not be ready to handle this one, it should just throw.

The alternative is to define how it works on HTMLPropertiesCollection objects,
but I don't think that scales.

You are receiving this mail because:
You are on the CC list for the bug.
Received on Wednesday, 5 December 2012 21:00:55 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:14:07 UTC