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: Tue, 04 Dec 2012 01:39:01 +0000
To: public-script-coord@w3.org
Message-ID: <bug-20225-3890-DzmN4TB78l@http.www.w3.org/Bugs/Public/>

--- Comment #4 from Boris Zbarsky <bzbarsky@mit.edu> ---
> So HTMLCollection.prototype.namedItem would always first just check if `this`
> is an HTMLPropertiesCollection, and throw if so.

Yes, that's runtime introspection, no?  Depending on exactly what the sub-set
of interfaces that override the property is this could get pretty expensive...

I suppose we could try it in practice and see how much it hurts things, but the
check above would about double the cost of calling namedItem on

You are receiving this mail because:
You are on the CC list for the bug.
Received on Tuesday, 4 December 2012 01:39:04 UTC

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