[Webkit-unassigned] [Bug 17213] New: The querySelectorAll method on an element node does not search only the element's descendants

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Feb 7 22:03:11 PST 2008


http://bugs.webkit.org/show_bug.cgi?id=17213

           Summary: The querySelectorAll method on an element node does not
                    search only the element's descendants
           Product: WebKit
           Version: 525+ (Nightly build)
          Platform: Macintosh
               URL: http://andrewdupont.net/test/test_query_selector.html
        OS/Version: Mac OS X 10.5
            Status: UNCONFIRMED
          Severity: Major
          Priority: P2
         Component: HTML DOM
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: webkit at andrewdupont.net


>From the W3C Selectors API draft:

"The querySelectorAll() methods on the ElementSelector interface must, when
invoked, return a StaticNodeList of all the Element nodes, in document order,
that are descendants of the element on which the method was invoked and matches
the group of selectors (selectors), if any. Otherwise it must return an empty
StaticNodeList."

The testcase shows that anyElement.querySelectorAll always behaves like
document.querySelectorAll — it'll search document-wide. This is incorrect.


-- 
Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list