WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
258258
Update `:empty` pseudo-class to also match elements with only whitespace
https://bugs.webkit.org/show_bug.cgi?id=258258
Summary
Update `:empty` pseudo-class to also match elements with only whitespace
Niklas Ljunglöf
Reported
2023-06-17 18:29:52 PDT
According to Selectors Level 4 (
https://www.w3.org/TR/selectors-4/#the-empty-pseudo
), the `:empty` pseudo-class should match whitespace-only elements. Currently it only matches elements with no child elements or content nodes.
Attachments
Add attachment
proposed patch, testcase, etc.
Tim Nguyen (:ntim)
Comment 1
2023-06-17 19:09:01 PDT
See also:
https://github.com/w3c/csswg-drafts/issues/8106
Radar WebKit Bug Importer
Comment 2
2023-06-24 18:30:16 PDT
<
rdar://problem/111273263
>
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