[Webkit-unassigned] [Bug 114457] typeof HTMLElement should be "function"
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Apr 11 12:56:36 PDT 2013
https://bugs.webkit.org/show_bug.cgi?id=114457
--- Comment #3 from Oliver Hunt <oliver at apple.com> 2013-04-11 12:54:51 PST ---
(In reply to comment #2)
> 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');
> }
> }
It's really defined as being a constructor, but throws anyway? why?
--
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