Bug 128400

Summary: AX: error parsing role attribute tokens; need to trim/split string before analyzing
Product: WebKit Reporter: James Craig <jcraig>
Component: AccessibilityAssignee: Tyler Wilcock <tyler_w>
Status: NEW ---    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar, WPTImpact
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Bug Depends on: 127447    
Bug Blocks:    

Description James Craig 2014-02-07 14:25:44 PST
WebKit recognizes:

Recognizes
role="navigation complementary foo"

but not
role=" navigation complementary foo"

Probably just need to trim/split the string value before analyzing. Also check newline and other non-space whitespace chars.
Comment 1 Radar WebKit Bug Importer 2014-02-07 14:26:23 PST
<rdar://problem/16015977>
Comment 2 James Craig 2014-02-07 15:20:20 PST
Also fails on newlines and tab chars in role value.
See: LayoutTests/accessibility/roles-computedRoleString.html

FAIL: div[role=foo	button	bar] -> . Expected: button.
FAIL: div[role=foo
button
bar] -> . Expected: button.
Comment 3 James Craig 2014-02-07 15:52:07 PST
Clarifying: this new layout test is coming in bug 127447.
LayoutTests/accessibility/roles-computedRoleString.html
Comment 4 James Craig 2023-03-20 23:58:07 PDT
Tagging WPTImpact because this will fail with some of the impending role tests coming with the Interop 2023 Accessibility Investigation.