[Webkit-unassigned] [Bug 139129] New: document.all can be both 'function' and 'not function'
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Dec 1 07:39:33 PST 2014
https://bugs.webkit.org/show_bug.cgi?id=139129
Bug ID: 139129
Summary: document.all can be both 'function' and 'not function'
Classification: Unclassified
Product: WebKit
Version: 528+ (Nightly build)
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: JavaScriptCore
Assignee: webkit-unassigned at lists.webkit.org
Reporter: zimbabao at gmail.com
typeof document.all === 'function' return true
and
var type = typeof document.all;
type === 'function' will return false.
So if you combine two statements or keep them separate they return different answer.
This is happening because document.all is returned to be CallTypeHost.
>From spec https://html.spec.whatwg.org/#dom-document-all
"The user agent must act such that the typeof operator in JavaScript returns the string undefined when applied to the object returned for all."
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20141201/ab410fbf/attachment-0001.html>
More information about the webkit-unassigned
mailing list