[Webkit-unassigned] [Bug 33479] New: Replacing hidden element causes first-child selector to behave weirdly

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Jan 11 11:10:05 PST 2010


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

           Summary: Replacing hidden element causes first-child selector
                    to behave weirdly
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: PC
               URL: http://gamca.informacie.sk/betatest/webkit_table2/inde
                    x_1-4a2.html
        OS/Version: Windows 7
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: CSS
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: kuvik3 at gmail.com


Hi,

I found bug in first-child rendering:
In provided testcase (see URL), clicking on link replaces hidden TD element
#first using jQuery 1.4 method replaceWith() with another element. However,
WebKit fails to render it correctly, because it hides not only replaced
:first-child (as it should), but also second TD child of table row. And when I
looked into Web Inspector, it says that second TD child is visible.

When I replaced :first-child by :first-of-type or even :nth-child(1) (in the
testcase these are equal), everything works as expected.

This issue occurs in stable Webkit browsers versions and also in nightly builds
of Webkit.

I reported this issue to jQuery team, but they said it's not bug in their
library.

-- 
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