Bug 283279

Summary: attr() name should support namespace
Product: WebKit Reporter: Tim Nguyen (:ntim) <ntim>
Component: CSSAssignee: 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)
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
Radar WebKit Bug Importer
Comment 1 2024-11-24 21:48:12 PST
roberto_rodriguez2
Comment 2 2025-02-18 16:24:32 PST
Note You need to log in before you can comment on or make changes to this bug.