Bug 260216

Summary: AX: ARIA role parsing should ignore any leading/trailing whitespace, including line breaks
Product: WebKit Reporter: James Craig <jcraig>
Component: AccessibilityAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: andresg_22, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: All   
OS: All   

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.