WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
283279
attr() name should support namespace
https://bugs.webkit.org/show_bug.cgi?id=283279
Summary
attr() name should support namespace
Tim Nguyen (:ntim)
Reported
2024-11-17 21:47:23 PST
We should use a QualifiedName with attr() and check the namespace appropriately. attr(*|data-attribute) or attr(html|id) should be valid syntax. See
https://drafts.csswg.org/css-values-5/#attr-notation
See
https://searchfox.org/wubkat/rev/d45649fa32a499702c30474e94bd6843c4c67849/Source/WebCore/css/parser/CSSSelectorParser.cpp#732
for how the CSS parser does it for `[*|data-attr]` in the CSS selector.
Attachments
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2024-11-24 21:48:12 PST
<
rdar://problem/140525205
>
roberto_rodriguez2
Comment 2
2025-02-18 16:24:32 PST
Pull request:
https://github.com/WebKit/WebKit/pull/40806
Karl Dubost
Comment 3
2025-06-11 18:17:38 PDT
This is currently failing:
https://wpt.fyi/results/css/css-conditional/at-supports-namespace-001.html
https://wpt.fyi/results/css/css-conditional/at-supports-namespace-002.html
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