-
Notifications
You must be signed in to change notification settings - Fork 124
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
Add aria-link-target property #1785
Comments
thanks for the issue @yatil - interestingly I actually started writing a proposal for an edit: changed attribute name per comment aria-opensIndicates that triggering the interactive control will result in either the appearance of, and change in focus to, an in-page popup or a new user agent window. The aria-target property is a token type. User agents MUST treat any value of aria-target that is not included in the list of allowed values, including the empty string or undefined, as if the value false had been specified. Assistive technologies MUST NOT expose the aria-target property if it has a value of false. NOTE:
to your issue's point of using the other values of |
Thanks for sharing!
Yeah, I was unsure about that. Most of them would probably not be actively announced, but I also did not want to limit it to the “new window”/“new tab” use case. |
Upvote! |
Yes please |
Yes please and thank you! |
+1. Fills a gap |
Yes please! |
+1 |
1 similar comment
+1 |
We are going to have to get ATs to update once we start exposing the information. Some authors already have a little icon for "opens in new tab" along with alt text. I know James Teh was complaining about the verbosity of that. It would be good if ATs used maybe an earcon (sound) when this semantic is present, in order to help avoid long announcements, and duplicate-sounding announcements. Unfortunately, if the author is already adding this icon with alt text, and we expose the new semantic for target="_blank" as the html-aam issue suggests, there will be a double indication in newer ATs that support the semantic. Anyone have any thoughts on how to make things overall better and less annoying? |
FWIW, I'm all for exposing Once that change is made, I'm not convinced there will be a lot of need for an ARIA-only attribute that does the same thing. It would only be useful/necessary in the cases where the browser engine couldn't already detect the target. For example:
Both of those are already against the authoring advice to avoid ARIA when possible so, once API support for target exists, this new ARIA attr would be supporting an uncommon anti-pattern. Beyond that, I don't think a new attribute should be name-locked to either link or target... If this is about the resulting behavior (opens in new window), new API should be related to that concept... Maybe tie this in with the other discussions about reworking |
Beyond that, I don't think a new attribute should be name-locked to
either link or target... If this is about the resulting behavior (opens in
new window), new API should be related to that concept... Maybe tie this in
with the other discussions about reworking aria-haspopup?
Neat. Maybe, aria-opens= popup|window|...
|
in my draft proposal for the potential attribute "target" was not meant to be a 1:1 with |
I think there is a potential to go beyond the target attribute. For example for the download attribute. Maybe aria-destination would be better. That said, I'm not super hung up on the actual naming on the feature, so all input is welcome. |
A big +1 for including the download attribute in the implementation here, since this can be very disorientating without visual cues, and those visual cues aren't always obvious. |
Description of bug or feature request
To allow assistive technology to announce the target of a link, an
aria-link-target
(or similar) property should be introduced. This attribute could have a value from list of possible link targets. There is precedent for that in the HTMLtarget
attribute (which should be matched, see this html-aam issue).The mapping should reference the existing valid browsing context name or keywords in HTML, however one would generally expect that the default context is set.
This feature should initially be used to provide information if a link uses a new window, a new tab or stays in the same context.
a@target="_blank"
could be matched to thearia-link-target
property value ofnew
. The browser should then amend this for assistive technologies to announce the setting that the user prefers for opening new contexts: “new tab” or “new window”.Will this require a change to CORE-AAM?
If unknown, leave blank. If relevant, link bug.
Will this require a change to the ARIA authoring guide?
If unknown, leave blank. If relevant, link bug.
PR tracking (for feature tracking, leave as is when submitting)
Implementation tracking (for feature tracking, leave as is when submitting)
The text was updated successfully, but these errors were encountered: