際際滷

際際滷Share a Scribd company logo
ARIA und HTML5
                            in freier Wildbahn




Martin Kliehm. @kliehm
Senior Frontend Engineer.
Namics.                      http://www.flickr.com/photos/73594239@N00/8937968/
Oder doch
eher so?




            http://www.flickr.com/photos/angelinawb/2086914195/
ARIA und HTML 5
Projekte von Namics
ARIA und HTML 5
ARIA und HTML 5
ARIA und HTML 5
Accessible Rich
Internet Applications
(ARIA)
Zuerst
die niedrig
h辰ngenden
Fr端chte
              http://www.flickr.com/photos/pgasston/1372139756/
<input type="text"
    aria-required="true" />
<input type="text"
    aria-required="true"
    aria-invalid="true" />
http://www.flickr.com/photos/lwr/2057056544/
http://webaim.org/blog/spam_free_accessible_forms/
ARIA und HTML 5
<ul role="menu navigation">
  <li role="menuitem">
    <a href="">ber Fraunhofer</a>
  </li>
</ul>
<a
  role="button"
  aria-controls="nav-direct-third"
  tabindex="0"
  title="Untermen端">
    Schnellzugriff
</a>
<ul id="nav-direct-third"
  role="menu navigation"
  aria-expanded="true">
  <li role="menuitem">
    <a href="">Presse / Medien</a>
  </li>
</ul>
HTML 5: Canvas
ARIA und HTML 5
ARIA und HTML 5
<canvas />
CSS 3
border-radius: 16px 16px 0 0;
-moz-border-radius: 16px 16px 0 0;
/* Webkit does suppport no more than
two values for border-radius */
-webkit-border-top-left-radius: 16px;
-webkit-border-top-right-radius: 16px;
-webkit-border-bottom-left-radius: 0;
-webkit-border-bottom-right-radius: 0;
<!--[if vml]>
<script type="text/javascript">
  var isVML = true;
</script>
<![endif]-->

v:roundrect {
  behavior: url(/slideshow/aria-und-html-5/1726566/);
  height: 100%;
  left: -1px;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 0;
}
ARIA und HTML 5
HTML 5: Geolocation
if ( navigator.geolocation ) {
  navigator.geolocation.getCurrentPosition(
     SBS.foundLocation
  );
}
ARIA + JavaScript
http://www.w3.org/TR/wai-aria-practices/
<ul role="tablist">
  <li role="tab">Bahn</li>
  <li role="tab">Mietwagen</li>
  <li role="tab">Hotel</li>
  <li role="tab">Mobilit辰t</li>
</ul>

<!-- Tabpanel Bahn -->
<div role="tabpanel">
  
</div>
   tabindex="0" setzen
   Event capturing:
    click, focus, keydown, keypress
   Tabpanel einblenden
   Tastatursteuerung:
    Pfeiltasten, ctrl + tab,
    ctrl + shift + tab
   Event-Bubbling stoppen
   ggf. Screenreader-Buffer
    aktualisieren
div aria-live="polite"
     aria-atomic="true"
     aria-relevant="additions text">


      Die Seite wurde Ihrem Merkzettel hinzugef端gt.
http://www.david-chavez.com




a11y  Technik
Danke.




twitter: @kliehm
Folien: slideshare.net/kliehm/aria-und-html-5
Videos: flic.kr/p/5EqqLe

More Related Content

ARIA und HTML 5