Bug 283279
Summary: | attr() name should support namespace | ||
---|---|---|---|
Product: | WebKit | Reporter: | Tim Nguyen (:ntim) <ntim> |
Component: | CSS | Assignee: | Nobody <webkit-unassigned> |
Status: | NEW | ||
Severity: | Normal | CC: | cdumez, karlcow, koivisto, webkit-bug-importer |
Priority: | P2 | Keywords: | GoodFirstBug, InRadar, WPTImpact |
Version: | WebKit Nightly Build | ||
Hardware: | Unspecified | ||
OS: | Unspecified |
Tim Nguyen (:ntim)
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
<rdar://problem/140525205>
roberto_rodriguez2
Pull request: https://github.com/WebKit/WebKit/pull/40806
Karl Dubost
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