[Webkit-unassigned] [Bug 152454] New: Object.keys returns length property of some DOM Objects
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Dec 18 18:03:57 PST 2015
https://bugs.webkit.org/show_bug.cgi?id=152454
Bug ID: 152454
Summary: Object.keys returns length property of some DOM
Objects
Classification: Unclassified
Product: WebKit
Version: Safari 9
Hardware: Macintosh
OS: Mac OS X 10.10
Status: NEW
Severity: Trivial
Priority: P2
Component: JavaScriptCore
Assignee: webkit-unassigned at lists.webkit.org
Reporter: oi at felquis.com
Hello
Object.keys(document.styleSheets) returns ['0', 'length'] while other browsers returns ['0']..
Object.keys(document.querySelectorAll('div')) also returns the 'length' as a key.. but in Chrome, Firefox and Opera does not. So I think it is a Safari issue.
Tested into Version 9.0.2 (10601.3.9), may affect iOS and probably affect others DOM Object TokenLists and Collections, for example HTMLCollection `Object.keys(document.body.children)` also returns the length property...
It is breaking my code here https://github.com/felquis/CSSOM-Query/issues/1
Thanks..
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20151219/92ad7723/attachment.html>
More information about the webkit-unassigned
mailing list