Bug 128400

Summary: AX: error parsing role attribute tokens; need to trim/split string before analyzing
Product: WebKit Reporter: James Craig <jcraig>
Component: AccessibilityAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
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:

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
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
bar] -> . Expected: button.
Comment 3 James Craig 2014-02-07 15:52:07 PST
Clarifying: this new layout test is coming in bug 127447.