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

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jul 23 11:49:02 PDT 2009


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

           Summary: document.__proto__ Behavior
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: PC
        OS/Version: Mac OS X 10.5
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: joepeck02 at gmail.com


Please read the comments on this bug report:
https://bugs.webkit.org/show_bug.cgi?id=27169

Note that I'm only concerned with the instanceof.  The typeof doesn't seem to
be a major issue.  Which behavior of instanceof do you think is correct?

Summary:

WebKit and Chrome:
> document.__proto__ instanceof window.Node
true
> document.__proto__.__proto__.__proto__ === Node.prototype
true
>typeof document.__proto__
"object"

Firefox:
> document.__proto__ instanceof window.Node
false
> document.__proto__.__proto__.__proto__ === Node.prototype
true
>typeof document.__proto__
"object"

Opera:
> document.__proto__ instanceof window.Node
false
> document.__proto__.__proto__.__proto__ === Node.prototype
ERROR
> typeof document.__proto__
"undefined"

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