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/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=20225

--- 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
HTMLCollections.

-- 
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.3.1 : Wednesday, 8 May 2013 19:30:08 UTC