[Webkit-unassigned] [Bug 114457] typeof HTMLElement should be "function"
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Apr 11 12:50:49 PDT 2013
https://bugs.webkit.org/show_bug.cgi?id=114457
--- Comment #2 from Erik Arvidsson <arv at chromium.org> 2013-04-11 12:49:04 PST ---
It is not constructable but it has a prototype.
This is speced in WebIDL:
http://dev.w3.org/2006/webapi/WebIDL/#interface-object
> The interface object for a given non-callback interface is a function object.
-------------------
WebKit also returns `"object"` for `typeof XMLHttpRequest` which is clearly constructable. ;-)
----------------------
The DOM interface objects are like:
class HTMLElement extends Element {
constructor() {
throw new TypeError('Illegal constructor');
}
}
--
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