[Webkit-unassigned] [Bug 11387] New: CSS: :empty selector is applied to all elements

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Oct 23 03:12:59 PDT 2006


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

           Summary: CSS: :empty selector is applied to all elements
           Product: WebKit
           Version: 420+ (nightly)
          Platform: Macintosh
               URL: http://www.css3.info/selectors-test/
        OS/Version: Mac OS X 10.4
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: CSS
        AssignedTo: webkit-unassigned at opendarwin.org
        ReportedBy: niels.leenheer at gmail.com


Current behavoir:
The :empty selector matches every element.

Reason:
The reason for this is that every time a new element is added to the DOM, it is
checked to see if it matches one of the CSS selectors. Because the DOM is build
one element at a time, every element is at least for a brief moment empty. 

Proper behavoir:
The :empty selector should only match elements that are *really* empty. Once an
element is no longer empty it should no longer match this selector.


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