[Webkit-unassigned] [Bug 152454] Object.keys returns length property of some DOM Objects

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jul 27 04:19:15 PDT 2022


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

Ahmad Saleem <zlip.792 at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |zlip.792 at gmail.com

--- Comment #1 from Ahmad Saleem <zlip.792 at gmail.com> ---
I am able to reproduce this issue while running these two in console on this page in Safari 15.6 on macOS 12.5 and other browsers:

*** Safari 15.6 on macOS 12.5 ***

For Object.keys(document.styleSheets); - it returns ["0", "1", "2"] (3)

For Object.keys(document.querySelectorAll('div')); - it returns ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", …] (38) 

*** Firefox Nightly 105 & Chrome Canary 106 ***

For first - (2) ['0', '1']

For second - (16) ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13', '14', '15']

____

If I am testing wrong then please ignore me but just wanted to share updated results. Thanks!

-- 
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/20220727/496ae724/attachment.htm>


More information about the webkit-unassigned mailing list