Diese Präsentation wurde erfolgreich gemeldet.
Wir verwenden Ihre LinkedIn Profilangaben und Informationen zu Ihren Aktivitäten, um Anzeigen zu personalisieren und Ihnen relevantere Inhalte anzuzeigen. Sie können Ihre Anzeigeneinstellungen jederzeit ändern.

WAI-ARIA is More Than Accessibility

4.451 Aufrufe

Veröffentlicht am

WAI-ARIA talk at COSCUP 2011, License CC-BY

Veröffentlicht in: Technologie, Design
  • DOWNLOAD THIS BOOKS INTO AVAILABLE FORMAT (2019 Update) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://soo.gd/irt2 } ......................................................................................................................... Download Full EPUB Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download Full doc Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download PDF EBOOK here { https://soo.gd/irt2 } ......................................................................................................................... Download EPUB Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download doc Ebook here { https://soo.gd/irt2 } ......................................................................................................................... ......................................................................................................................... ................................................................................................................................... eBook is an electronic version of a traditional print book THIS can be read by using a personal computer or by using an eBook reader. (An eBook reader can be a software application for use on a computer such as Microsoft's free Reader application, or a book-sized computer THIS is used solely as a reading device such as Nuvomedia's Rocket eBook.) Users can purchase an eBook on diskette or CD, but the most popular method of getting an eBook is to purchase a downloadable file of the eBook (or other reading material) from a Web site (such as Barnes and Noble) to be read from the user's computer or reading device. Generally, an eBook can be downloaded in five minutes or less ......................................................................................................................... .............. Browse by Genre Available eBooks .............................................................................................................................. Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, ......................................................................................................................... ......................................................................................................................... .....BEST SELLER FOR EBOOK RECOMMEND............................................................. ......................................................................................................................... Blowout: Corrupted Democracy, Rogue State Russia, and the Richest, Most Destructive Industry on Earth,-- The Ride of a Lifetime: Lessons Learned from 15 Years as CEO of the Walt Disney Company,-- Call Sign Chaos: Learning to Lead,-- StrengthsFinder 2.0,-- Stillness Is the Key,-- She Said: Breaking the Sexual Harassment Story THIS Helped Ignite a Movement,-- Atomic Habits: An Easy & Proven Way to Build Good Habits & Break Bad Ones,-- Everything Is Figureoutable,-- What It Takes: Lessons in the Pursuit of Excellence,-- Rich Dad Poor Dad: What the Rich Teach Their Kids About Money THIS the Poor and Middle Class Do Not!,-- The Total Money Makeover: Classic Edition: A Proven Plan for Financial Fitness,-- Shut Up and Listen!: Hard Business Truths THIS Will Help You Succeed, ......................................................................................................................... .........................................................................................................................
       Antworten 
    Sind Sie sicher, dass Sie …  Ja  Nein
    Ihre Nachricht erscheint hier

WAI-ARIA is More Than Accessibility

  1. 1. WAI-ARIA is morethan Accessibility othree @ COSCUP 2011
  2. 2. Who am IMember of Happy Designer MozTW HTML5-IG-ZH Work PhD Candidate on Civil F2E at HTC
  3. 3. The History
  4. 4. Web 2.0
  5. 5. Age ofRich Internet Applications RIA
  6. 6. Custom Widgets
  7. 7. AJAX
  8. 8. Problems• Custom Widgets • No Semantic, Browser/AT didn’t realize • Can’t get focus
  9. 9. Problem• AJAX • AT didn’t know when the content changes, and where is it.
  10. 10. WAI-ARIA
  11. 11. WAI-ARIA• Proposed by Richard Schwerdtfeger from IBM and Becky Gibson from W3C• W3C Candidate Recommendation at 2011/01/18• You can use it TODAY http://www.alistapart.com/articles/waiaria
  12. 12. Components of ARIA• role → browser knows meaning• states and properties → browser knows• redefine tabindex → possible to focus• liveregion → notice when content changes
  13. 13. Mapping to Problems• role → browser knows meaning• states and properties → browser knows• redefine tabindex → possible to focus• liveregion → notice when content changes
  14. 14. Mapping to Problems• role → define new rolesmeaning browser knows• states and properties → browser knows• redefine tabindex → possible to focus• liveregion → notice when content changes
  15. 15. Mapping to Problems• role → define new rolesmeaning browser knows• states and properties → store states browser knows• redefine tabindex → possible to focus• liveregion → notice when content changes
  16. 16. Mapping to Problems• role → define new rolesmeaning browser knows• states and properties → store states browser knows• redefine tabindex → possible to focus• liveregion → notice when content changes
  17. 17. Mapping to Problems• role → define new rolesmeaning browser knows• states and properties → store states browser knows• redefine tabindex → possible to focus• liveregion → notice when content changes
  18. 18. Role
  19. 19. Role, role of element• alert • scrollbar• button • slider• checkbox • tab• dialog • timer• link • tooltip• menuitem • ...
  20. 20. Slider<span tabindex="0" role="slider" aria-valuenow="33" aria-valuemin="0" aria-valuemax="50" id="slider1" title="My slider" onkeydown="return handleSliderKey(this, event)"> --</span>
  21. 21. Slider<span tabindex="0" role="slider" aria-valuenow="33" aria-valuemin="0" aria-valuemax="50" id="slider1" title="My slider" onkeydown="return handleSliderKey(this, event)"> --</span>
  22. 22. Role, more than widget• Widgets Roles• Document Structure• Landmark
  23. 23. Document Structure Landmark• article • banner• heading • complementary• img • contentinfo• list • main• note • navigation• presentation • search
  24. 24. HTML5 Semantic Tag <header> <nav> <aside> <article>
  25. 25. ARIA Document Structure banner navigation complementary main
  26. 26. Difference ARIA HTML5 Banner forbanner <header> Head of section entire site Main content ofmain <article> An article page
  27. 27. HTML5 + ARIA <div role=”banner”> <nav><div role=”main”> <aside> <article></div>
  28. 28. ARIA can helpHTML5 document more semantic
  29. 29. States & Properties
  30. 30. <div id="master" style=".." class=".."> <div class=".." style="width: 60%;"></div> <a class=".." href="#" style="left: 60%;"></a></div>
  31. 31. <div id="master" style=".." class=".."> <div class=".." style="width: 60%;"></div> <a class=".." href="#" style="left: 60%;"></a></div>
  32. 32. <div id="master" style=".." class=".."> <div class=".." style="width: 60%;"></div> <a class=".." href="#" style="left: 60%;"></a></div>
  33. 33. Store Methods• Use DOM Node property• Use custom class• Use custom attribute• Use Widget controller• Use centralized storage system
  34. 34. ARIA slider<span tabindex="0" role="slider" aria-valuenow="33" aria-valuemin="0" aria-valuemax="50" id="slider1" title="My slider" onkeydown="return handleSliderKey(this, event)"> --</span>
  35. 35. ARIA slider<span tabindex="0" role="slider" aria-valuenow="33" aria-valuemin="0" aria-valuemax="50" id="slider1" title="My slider" onkeydown="return handleSliderKey(this, event)"> --</span>
  36. 36. ARIA slider<span tabindex="0" role="slider" aria-valuenow="33" aria-valuemin="0" aria-valuemax="50" id="slider1" title="My slider" onkeydown="return handleSliderKey(this, event)"> --</span>
  37. 37. ARIA slider<span tabindex="0" role="slider" aria-valuenow="33" aria-valuemin="0" aria-valuemax="50" id="slider1" title="My slider" onkeydown="return handleSliderKey(this, event)"> --</span>
  38. 38. Also for Relationships• label, describe• owns, controlls
  39. 39. ?
  40. 40. ? ?
  41. 41. label, describe<a href="http://yahoo.com" id="yahoo-link-2" aria-describedby="tooltip">Link to yahoo1</a>...<div id="tooltip" aria-labelledby="yahoo-link-2"> <h3>Yahoo doo2</h3> <div class="body">wohooo</div> <div class="url" style="display: none; "></div></div>
  42. 42. label, describe<a href="http://yahoo.com" id="yahoo-link-2" aria-describedby="tooltip">Link to yahoo1</a>...<div id="tooltip" aria-labelledby="yahoo-link-2"> <h3>Yahoo doo2</h3> <div class="body">wohooo</div> <div class="url" style="display: none; "></div></div>
  43. 43. Live Region
  44. 44. Live Region• Monitor DOM change• How? • aria-live=”polite”
  45. 45. Polite Level• off• polite• assertive• rude
  46. 46. Tabindex
  47. 47. Redefine Tabindex• Available for all visible elements• Three values • >0 • 0→ • -1 →
  48. 48. Redefine Tabindex• Available for all visible elements• Three values • >0 • 0 → in native order • -1 →
  49. 49. Redefine Tabindex• Available for all visible elements• Three values • >0 • 0 → in native order • -1 → need .focus()
  50. 50. ←START
  51. 51. 1 Tab Order2 3 4 5 67...
  52. 52. 1 Ideal Tab Order23
  53. 53. Move to Other Tab→
  54. 54. Move to Other Tab← →
  55. 55. Tabindex Value0 -1 -1 -1 -1
  56. 56. Tabindex Value-1 0 -1 -1 -1
  57. 57. Not automatically
  58. 58. More than Accessibility
  59. 59. SEO• Document Structure & Landmark Role • Yahoo! supports • Google use role too
  60. 60. Standard Way to Store Property & State• Avoid pollute DOM Node & className• Build relationship between nodes
  61. 61. Use WAI-ARIA Today!!
  62. 62. Thank You
  63. 63. Questions?

×