Bug 260216 - AX: ARIA role parsing should ignore any leading/trailing whitespace, including line breaks
Summary: AX: ARIA role parsing should ignore any leading/trailing whitespace, includin...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Accessibility (show other bugs)
Version: WebKit Nightly Build
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-08-15 12:59 PDT by James Craig
Modified: 2023-09-12 21:31 PDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description James Craig 2023-08-15 12:59:28 PDT
WPT Failure: ARIA role parsing should ignore any leading/trailing whitespace, including line breaks.

Failure in new test, "div[role=button] ignoring line break"
https://wpt.fyi/results/wai-aria/role/fallback-roles.html?label=experimental&label=master&aligned

For this markup (the line break here is substantive)

<div role="
button" data-testname="div[role=button] ignoring line break" aria-label="x" data-expectedrole="button" class="ex">x</div>


FAIL message: expected "button" but got "generic" as the computed role
Comment 1 Radar WebKit Bug Importer 2023-08-15 12:59:37 PDT
<rdar://problem/113923520>
Comment 3 Hunseop Jeong 2023-09-01 03:25:05 PDT
Pull request: https://github.com/WebKit/WebKit/pull/17337
Comment 4 EWS 2023-09-12 21:31:48 PDT
Committed 267930@main (3693580c14ed): <https://commits.webkit.org/267930@main>

Reviewed commits have been landed. Closing PR #17337 and removing active labels.