[Webkit-unassigned] [Bug 27611] document.__proto__ Behavior

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jul 23 12:17:07 PDT 2009


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





--- Comment #3 from Erik Arvidsson <arv at chromium.org>  2009-07-23 12:17:06 PDT ---
This is once again underspecified behavior.

> document.__proto__ instanceof window.Node
true

This is correct because the [[Prototype]] of document should be a Node

> document.__proto__.__proto__.__proto__ === Node.prototype
true

This is less clear. DOM defines everything in interfaces. But given that we
treat an interface as a prototype in other places it seems as correct as we can
get it

document instanceof HTMLDocument
document.__proto__instanceof Document
document.__proto__.__proto__ instanceof Node

I think this is (or should be) covered by WebIDL.

To me it seems WebKit is doing as good as it can.

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