Bug 128400 - AX: error parsing role attribute tokens; need to trim/split string before analyzing
Summary: AX: error parsing role attribute tokens; need to trim/split string before ana...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Accessibility (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Tyler Wilcock
URL:
Keywords: InRadar, WPTImpact
Depends on: 127447
Blocks:
  Show dependency treegraph
 
Reported: 2014-02-07 14:25 PST by James Craig
Modified: 2023-03-21 00:18 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.