-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mention <br> element #4
Comments
I agree, this seems like a no-brainer to me. If text is broken out on different lines via BR then this cannot be concatenated with no space between lines when computed.
Though I’m not sure how this could be included in the spec, it does need to be included in the naming computation implemented by the browsers. As such, I’ve already added the ‘br’ tag to the block level elements array in the Naming Computation Prototype at
https://raw.githubusercontent.com/accdc/w3c-alternative-text-computation/c7863b6f9e00616b4c24e263719b76765046eabe/docs/Sample%20JavaScript%20Recursion%20Algorithm/recursion.js
|
I think it is a fair simplification to say that a However, as Bryan hinted at in his reply, the So that should be a broader issue: if elements are displayed as separate blocks, insert one whitespace character between them. For CSS-styled content, that could basically be defined as: If an element's CSS display type is not For environments without CSS styling, you would use the default display type for the element, which could be defined as lists of block vs inline elements (e.g, in the HTML-AAM). If specific additional details are required for |
I am not 100% sure, but |
Hi,
I didn’t mean to imply that BR is a block level element, just that BR has a definitive visual purpose which is to force a visual line break, and logically anything that is broken in such a manner must include a space in the naming computation when calculated by browsers.
So by adding this tag to the block elements array, it forces this to occur in the Naming Computation Prototype that we are testing with.
|
I brought up block-level elements because they don't seem to be mentioned in the current spec text, and they have the same effect of breaking up text. But yes, relying on CSS My suggestion would therefore have 3 parts:
|
Maybe @stevefaulkner or @jasonkiss could comment on the plausibility of adding a |
The issue of how to process |
I’ve also added relevant comments to issue 3 for reference.
From: Matt King <[email protected]>
Sent: Wednesday, March 07, 2018 11:48 PM
To: w3c/accname <[email protected]>
Cc: Bryan Garaventa <[email protected]>; Comment <[email protected]>
Subject: Re: [w3c/accname] Mention <br> element (#4)
The issue of how to process <br> issue is closely related to #3 <#3> . It should not be addressed independent of all the other white space considerations, which, due to their complexity, are targeted for accname 1.2.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub <#4 (comment)> , or mute the thread <https://github.com/notifications/unsubscribe-auth/ABx1aNCZChjz3rNnAYSR79Q6MChpnOv-ks5tcOI7gaJpZM4SA8Vp> . <https://github.com/notifications/beacon/ABx1aN_dldsmwdGpsIcMkccn6_4l4dSvks5tcOI7gaJpZM4SA8Vp.gif>
|
I would expect the accessible name of that element to be "foo bar" (with a space where the
<br>
element was). However, I do not see how the<br>
element is handled in the spec.Maybe a step roughly like this could be added between 7 and 8:
The text was updated successfully, but these errors were encountered: