WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED DUPLICATE of
bug 5468
11385
CSS: :last-of-type selector is applied to all elements
https://bugs.webkit.org/show_bug.cgi?id=11385
Summary
CSS: :last-of-type selector is applied to all elements
Niels Leenheer (HTML5test)
Reported
2006-10-23 02:56:02 PDT
Current behavoir: The :last-of-type 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 once the last element of a certain type. Proper behavoir: The selector should only match elements that are *really* the last of a certain type. Once an element is no longer the last of a certain type, it should no longer match the :last-of-type selector.
Attachments
Add attachment
proposed patch, testcase, etc.
Nicholas Shanks
Comment 1
2006-11-20 16:17:42 PST
*** This bug has been marked as a duplicate of
5468
***
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug