Slide 1

Slide 1 text

WAI-ARIA is more than Accessibility othree @ COSCUP 2011

Slide 2

Slide 2 text

Who am I Member of Happy Designer MozTW HTML5-IG-ZH Work PhD Candidate on Civil F2E at HTC

Slide 3

Slide 3 text

The History

Slide 4

Slide 4 text

Web 2.0

Slide 5

Slide 5 text

Age of RIA Rich Internet Applications

Slide 6

Slide 6 text

Custom Widgets

Slide 7

Slide 7 text

No content

Slide 8

Slide 8 text

No content

Slide 9

Slide 9 text

No content

Slide 10

Slide 10 text

No content

Slide 11

Slide 11 text

No content

Slide 12

Slide 12 text

AJAX

Slide 13

Slide 13 text

No content

Slide 14

Slide 14 text

No content

Slide 15

Slide 15 text

No content

Slide 16

Slide 16 text

Problems • Custom Widgets • No Semantic, Browser/AT didn’t realize • Can’t get focus

Slide 17

Slide 17 text

No content

Slide 18

Slide 18 text

No content

Slide 19

Slide 19 text

No content

Slide 20

Slide 20 text

No content

Slide 21

Slide 21 text

Problem • AJAX • AT didn’t know when the content changes, and where is it.

Slide 22

Slide 22 text

WAI-ARIA

Slide 23

Slide 23 text

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

Slide 24

Slide 24 text

Components of ARIA • role → browser knows meaning • states and properties → browser knows • redefine tabindex → possible to focus • liveregion → notice when content changes

Slide 25

Slide 25 text

• role → browser knows meaning • states and properties → browser knows • redefine tabindex → possible to focus • liveregion → notice when content changes Mapping to Problems

Slide 26

Slide 26 text

• role → browser knows meaning • states and properties → browser knows • redefine tabindex → possible to focus • liveregion → notice when content changes • role → define new roles Mapping to Problems

Slide 27

Slide 27 text

• role → browser knows meaning • states and properties → browser knows • redefine tabindex → possible to focus • liveregion → notice when content changes • role → define new roles • states and properties → store states Mapping to Problems

Slide 28

Slide 28 text

• role → browser knows meaning • states and properties → browser knows • redefine tabindex → possible to focus • liveregion → notice when content changes • role → define new roles • states and properties → store states • redefine tabindex → possible to focus Mapping to Problems

Slide 29

Slide 29 text

• role → browser knows meaning • states and properties → browser knows • redefine tabindex → possible to focus • liveregion → notice when content changes • role → define new roles • states and properties → store states • redefine tabindex → possible to focus • liveregion → notice when content changes Mapping to Problems

Slide 30

Slide 30 text

Role

Slide 31

Slide 31 text

Role, role of element • alert • button • checkbox • dialog • link • menuitem • scrollbar • slider • tab • timer • tooltip • ...

Slide 32

Slide 32 text

No content

Slide 33

Slide 33 text

Slider --

Slide 34

Slide 34 text

Slider --

Slide 35

Slide 35 text

Role, more than widget • Widgets Roles • Document Structure • Landmark

Slide 36

Slide 36 text

Document Structure Landmark • article • heading • img • list • note • presentation • banner • complementary • contentinfo • main • navigation • search

Slide 37

Slide 37 text

HTML5 Semantic Tag

Slide 38

Slide 38 text

banner main complementary ARIA Document Structure navigation

Slide 39

Slide 39 text

Difference ARIA ARIA HTML5 HTML5 banner Banner for entire site Head of section main Main content of page An article

Slide 40

Slide 40 text

HTML5 + ARIA

Slide 41

Slide 41 text

ARIA can help HTML5 document more semantic

Slide 42

Slide 42 text

States & Properties

Slide 43

Slide 43 text

No content

Slide 44

Slide 44 text

Slide 45

Slide 45 text

Slide 46

Slide 46 text

Slide 47

Slide 47 text

Store Methods • Use DOM Node property • Use custom class • Use custom attribute • Use Widget controller • Use centralized storage system

Slide 48

Slide 48 text

ARIA slider --

Slide 49

Slide 49 text

ARIA slider --

Slide 50

Slide 50 text

ARIA slider --

Slide 51

Slide 51 text

ARIA slider --

Slide 52

Slide 52 text

Also for Relationships • label, describe • owns, controlls

Slide 53

Slide 53 text

No content

Slide 54

Slide 54 text

No content

Slide 55

Slide 55 text

?

Slide 56

Slide 56 text

? ?

Slide 57

Slide 57 text

label, describe Link to yahoo1 . . .

Yahoo doo2

wohooo

Slide 58

Slide 58 text

label, describe Link to yahoo1 . . .

Yahoo doo2

wohooo

Slide 59

Slide 59 text

Live Region

Slide 60

Slide 60 text

Live Region • Monitor DOM change • How? • aria-live=”polite”

Slide 61

Slide 61 text

Polite Level • off • polite • assertive • rude

Slide 62

Slide 62 text

Tabindex

Slide 63

Slide 63 text

Redefine Tabindex • Available for all visible elements • Three values • > 0 • 0 → • -1 →

Slide 64

Slide 64 text

Redefine Tabindex • Available for all visible elements • Three values • > 0 • 0 → • -1 → • 0 → in native order

Slide 65

Slide 65 text

Redefine Tabindex • Available for all visible elements • Three values • > 0 • 0 → • -1 → • 0 → in native order • -1 → need .focus()

Slide 66

Slide 66 text

No content

Slide 67

Slide 67 text

←START

Slide 68

Slide 68 text

1 2 3 4 5 6 7... Tab Order

Slide 69

Slide 69 text

1 2 3 Ideal Tab Order

Slide 70

Slide 70 text

→ Move to Other Tab

Slide 71

Slide 71 text

← → Move to Other Tab

Slide 72

Slide 72 text

No content

Slide 73

Slide 73 text

0 -1 -1 -1 -1 Tabindex Value

Slide 74

Slide 74 text

-1 0 -1 -1 -1 Tabindex Value

Slide 75

Slide 75 text

Not automatically

Slide 76

Slide 76 text

More than Accessibility

Slide 77

Slide 77 text

SEO • Document Structure & Landmark Role • Yahoo! supports • Google use role too

Slide 78

Slide 78 text

Standard Way to Store Property & State • Avoid pollute DOM Node & className • Build relationship between nodes

Slide 79

Slide 79 text

Use WAI-ARIA Today!!

Slide 80

Slide 80 text

Thank You

Slide 81

Slide 81 text

Questions?