<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Object.keys returns length property of some DOM Objects"
   href="https://bugs.webkit.org/show_bug.cgi?id=152454">152454</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Object.keys returns length property of some DOM Objects
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>WebKit
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>Safari 9
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Macintosh
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Mac OS X 10.10
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>Trivial
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P2
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>JavaScriptCore
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>webkit-unassigned&#64;lists.webkit.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>oi&#64;felquis.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>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 <a href="https://github.com/felquis/CSSOM-Query/issues/1">https://github.com/felquis/CSSOM-Query/issues/1</a>

Thanks..</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>