[Webkit-unassigned] [Bug 114457] typeof HTMLElement should be "function"

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Apr 11 13:14:53 PDT 2013


https://bugs.webkit.org/show_bug.cgi?id=114457


Glenn Adams <glenn at skynav.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |glenn at skynav.com




--- Comment #5 from Glenn Adams <glenn at skynav.com>  2013-04-11 13:13:08 PST ---
My reading of WebIDL 4.4 [1] is that there is a more general requirement for non-callback interfaces that are not declared with [NoInterfaceObject], namely that:

(1) a corresponding property must exist on the ECMAScript global object;
(2) the name of the property is the identifier of the interface;
(3) its value is an object called the interface object; and
(4) the interface object for a given non-callback interface is a function object.

In some W3C CSSOM incoming tests [2], one can see how CSSStyleDeclaration is not instanceof Function on Safari, but works on FF and Opera.

So it isn't just HTMLElement.

[1] http://www.w3.org/TR/WebIDL/#es-interfaces
[2] http://hg.csswg.org/test/raw-file/default/contributors/gadams/incoming/cssom/cssstyledeclaration-interface.xht

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the webkit-unassigned mailing list