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

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

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