[Webkit-unassigned] [Bug 70879] New: :nth-child with descendant selector not selecting all elements

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Oct 26 01:09:02 PDT 2011


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

           Summary: :nth-child with descendant selector not selecting all
                    elements
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Unspecified
        OS/Version: Unspecified
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: CSS
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: pimvdb at live.nl


Created an attachment (id=112465)
 --> (https://bugs.webkit.org/attachment.cgi?id=112465&action=review)
Test case

Given the DOM as in the attached test case, the selector "td:nth-child(2) input" only selects the first input of each second td in each row, and not all four of them.

This only happens with "document.querySelectorAll" in JavaScript; using this selector in CSS always works.

"td:nth-child(1) input" returns all four expected elements.

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



More information about the webkit-unassigned mailing list