Bug 19949 - document.querySelectorAll should return a StaticNodeList
Summary: document.querySelectorAll should return a StaticNodeList
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac OS X 10.5
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-08 11:29 PDT by Anthony Ricaud
Modified: 2008-07-08 13:28 PDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Anthony Ricaud 2008-07-08 11:29:54 PDT
The result of document.querySelectorAll() is an instance of NodeList but it should be an instance of StaticNodeList.

Step to reproduce:
1) Open the Console
2) Type "document.querySelectorAll('a')"

Actual behaviour:
[object NodeList]

Expected behavour:
[object StaticNodeList]

There is no StaticNodeList object in the global scope either.

Spec:
http://www.w3.org/TR/selectors-api/#staticnodelist
Comment 1 Sam Weinig 2008-07-08 13:28:09 PDT
This is INVALID.  The latest draft of the spec (http://dev.w3.org/2006/webapi/selectors-api/) does not have a separate StaticNodeList interface.