惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Spread Privacy
Spread Privacy
K
Kaspersky official blog
Application and Cybersecurity Blog
Application and Cybersecurity Blog
Forbes - Security
Forbes - Security
Hacker News - Newest:
Hacker News - Newest: "LLM"
The Last Watchdog
The Last Watchdog
SecWiki News
SecWiki News
Attack and Defense Labs
Attack and Defense Labs
Google DeepMind News
Google DeepMind News
Security Archives - TechRepublic
Security Archives - TechRepublic
S
Secure Thoughts
WordPress大学
WordPress大学
Microsoft Security Blog
Microsoft Security Blog
P
Proofpoint News Feed
云风的 BLOG
云风的 BLOG
V
Visual Studio Blog
Security Latest
Security Latest
TaoSecurity Blog
TaoSecurity Blog
Cyberwarzone
Cyberwarzone
S
SegmentFault 最新的问题
Cloudbric
Cloudbric
aimingoo的专栏
aimingoo的专栏
S
Schneier on Security
N
Netflix TechBlog - Medium
MyScale Blog
MyScale Blog
T
The Blog of Author Tim Ferriss
H
Hacker News: Front Page
C
Cybersecurity and Infrastructure Security Agency CISA
小众软件
小众软件
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
AWS News Blog
AWS News Blog
AI
AI
G
GRAHAM CLULEY
IT之家
IT之家
P
Privacy & Cybersecurity Law Blog
L
Lohrmann on Cybersecurity
Last Week in AI
Last Week in AI
D
Docker
Recent Announcements
Recent Announcements
O
OpenAI News
T
Threat Research - Cisco Blogs
GbyAI
GbyAI
S
Security @ Cisco Blogs
T
Troy Hunt's Blog
C
Check Point Blog
博客园 - 三生石上(FineUI控件)
A
About on SuperTechFans
The Cloudflare Blog
阮一峰的网络日志
阮一峰的网络日志
N
News and Events Feed by Topic

Recent Commits to using-aria:gh-pages

Updates to Using ARIA (#62) · w3c/using-aria@002bb7a Merge pull request #55 from w3c/auto-pub · w3c/using-aria@dd885f4 chore: auto-publish · w3c/using-aria@a297117 chore: relocate github files · w3c/using-aria@bb10b67 chore: update ReSpec config · w3c/using-aria@a655ddc chore: fix Marcos' email · w3c/using-aria@4c77f4e update WG id · w3c/using-aria@d3e0bc0 Merge pull request #53 from tomayac/patch-1 · w3c/using-aria@0e3039c Correct MSIE casing, remove erroneous invisible space · w3c/using-aria@a035299 Merge pull request #46 from w3c/marcoscaceres-patch-1 · w3c/using-aria@6b026e1 tidy CSS · w3c/using-aria@79646b3 Small fixup · w3c/using-aria@259fb92 Fixup some references · w3c/using-aria@bb67d26 chore: remove redundant js · w3c/using-aria@fcad449 Use CSS for th width · w3c/using-aria@c79750d Chore: set up link validation · w3c/using-aria@660bccc Editorial: Update link to 'Just use a (native) HTML button' · w3c/using-aria@f644774 Editorial: Changed ARIA 1.1 links to 1.2 and HTTPS · w3c/using-aria@30a0f6d Changed ARIA 1.1 links to 1.2 and HTTPS · w3c/using-aria@ce2d1fc
fix markup typo · w3c/using-aria@94392cf
scottaohara · 2019-05-11 · via Recent Commits to using-aria:gh-pages

@@ -446,8 +446,8 @@ <h5 id="p10">Other static elements with <code>aria-label</code>, <code>aria-labe

446446

</table>

447447

<p><code>aria-label</code> and <code>aria-labelledby</code> have similar behaviour in screen readers and the Accessibility API, but <code>aria-label</code> should be reserved for when there is no visible text on the page to reference or when keeping track of <code>id</code> values would be too difficult. <a href="http://davidmacd.com/blog/does-aria-label-override-static-text.html">Test sources</a></p>

448448

<h4>Internet explorer notes on aria-labelledby, aria-label, and aria-describedby</h4>

449-

p>In Internet Explorer, if you use <code>aria-labelledby</code> with multiple <code>id</code> references or <code>aria-describedby</code> with single or multiple <code>id</code> references, the referenced elements <strong>must be</strong> what Microsoft terms as <a href="http://msdn.microsoft.com/en-us/library/ie/gg701963%28v=vs.85%29.aspx#Accessible_HTML_Elements">accessible HTML elements</a>.</p>

450-

<p>The following example of <code>aria-labelledby</code> with multiple references uses a <code>span</code> with a <code>tabindex=-1</code> added. Refer to <a href="http://msdn.microsoft.com/en-us/library/ie/gg701963%28v=vs.85%29.aspx#Making_Nonaccessible_Elements_Accessible">Making Non accessible Elements Accessible</a>.</p>

449+

<p>In Internet Explorer, if you use <code>aria-labelledby</code> with multiple <code>id</code> references or <code>aria-describedby</code> with single or multiple <code>id</code> references, the referenced elements <strong>must be</strong> what Microsoft terms as <a href="http://msdn.microsoft.com/en-us/library/ie/gg701963%28v=vs.85%29.aspx#Accessible_HTML_Elements">accessible HTML elements</a>.</p>

450+

<p>The following example of <code>aria-labelledby</code> with multiple references uses a <code>span</code> with a <code>tabindex=-1</code> added. Refer to <a href="http://msdn.microsoft.com/en-us/library/ie/gg701963%28v=vs.85%29.aspx#Making_Nonaccessible_Elements_Accessible">Making Non accessible Elements Accessible</a>.</p>

451451

<code class="block">&lt;label

452452

<mark>id=&quot;l1&quot;</mark>

453453

for="f3"&gt;label text&lt;/label&gt;<br>

@@ -508,7 +508,7 @@ <h3>The Effect of Accessible Name on Background Images</h3>

508508

<h5>What If You Can't Avoid Using CSS Images or If You Want Alternate Text for &quot;Non-important&quot; Ambient Photos, Etc.? </h5>

509509

<p>The CSS spec makes its discouragement of CSS informational background images a &quot;SHOULD&quot; not a &quot;MUST&quot; because there are times when visual design or existing code makes it difficult to change it to an HTML image without redesigning the front-end. Other times the author may want to provide alternate text for an ambient image that is <em><strong>not</strong></em> "important" to the understanding of the content but as a courtesy to screen reader users who prefer knowing what is in the image. Here is a detailed article on <a href="http://davidmacd.com/blog/what-is-pure-decoration-alt-text-in-wcag.html">ambient images vs pure decoration vs informational images.</a> </p>

510510

<h5>When Providing Alternate Text for the CSS Image, There Are Number of Considerations </h5>

511-

<p>If the <code>&lt;div&gt;</code> tag has any content inside it, then a <code>role=&quot;img&quot;</code> and <code>aria-label</code> could obscure the inside content because of the <a href="https://www.w3.org/TR/html-aam-1.0/#img-element">accessible name calculation</a>, or the assistive technology might just ignore the <code>aria-label</code>.

511+

<p>If the <code>&lt;div&gt;</code> tag has any content inside it, then a <code>role=&quot;img&quot;</code> and <code>aria-label</code> could obscure the inside content because of the <a href="https://www.w3.org/TR/html-aam-1.0/#img-element">accessible name calculation</a>, or the assistive technology might just ignore the <code>aria-label</code>.

512512

</p>

513513

<p>So do not put the CSS background image inside a <code>&lt;div&gt;</code> that contains any content. It's best to use an empty <code>&lt;span&gt;</code> and an <code>aria-label</code> with <code>role="img"</code></p>

514514

<p><strong>Do this:</strong></p>

@@ -539,7 +539,7 @@ <h4>What If the Author Has to Have a CSS Image on a <code>&lt;div&gt;</code> tha

539539

<h3 tabindex="-1">Using ARIA role=application</h3>

540540

<h4 id="not">How Does role=&quot;application&quot; Affect a Screen Reader?</h4>

541541

<p>On many popular screen readers today, most keystrokes are captured by the screen reader and not the web page when the user is in browse mode. This is necessary for efficient navigation of a page. As of this writing, when application mode is set, many screen readers stop intercepting keystrokes, and pass all keystrokes directly to the browser. Then the user won't be able to navigate the page as easily. For instance they won't be able to skip around the page by headings or read a paragraph of static text line-by-line. However, several screen readers do not behave differently when there is an application role set.</p>

542-

<h4>So When Should I Use It, and When Not? </h4>

542+

<h4>So When Should I Use It, and When Not?</h4>

543543

<p>In determining when to use <code>role=application</code>, one should consider, among other things, the advantages of screen reader keyboard shortcuts weighed against the loss of those features. It generally should not be used, and if it is, usability testing with screen reader users should be conducted.</p>

544544

<p>You <strong>do not</strong> use <code>role="application"</code> if a set of controls only contains these widgets, that are all part of standard HTML. This also applies if you mark them up and create an interaction model using WAI-ARIA roles instead of standard HTML widgets:</p>

545545

<p><strong>NOTE:</strong> It's not recommended that authors develop custom text input widgets. It's almost always best to use the native inputs for these.</p>