Bug 197447 - AXI: Label for inline elements can display extraneous whitespace.
Summary: AXI: Label for inline elements can display extraneous whitespace.
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: WebKit Nightly Build
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2019-04-30 17:38 PDT by James Craig
Modified: 2019-04-30 22:46 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 2019-04-30 17:38:23 PDT
AXI: Label for inline elements can display extraneous whitespace. 

Given the following markup:

<input type="text" id="test" />
<label for="test">W<i>h<b>a</b></i>t<br>is<div>your<div>name<b>?</b></div></div></label>

If you select the text field in the Web Inspector, and display the Accessibility section of the Node Inspector, the label is listed as 

"W h a t is your name ?" 

not 

"What is your name?"

I'm not certain if this is a bug according to the AccName spec, but it was unexpected to me. The inline nodes (b, i, etc.) I thought would be concatenated without leading and trailing space.
Comment 1 Radar WebKit Bug Importer 2019-04-30 22:46:15 PDT
<rdar://problem/50361874>