html5 - "Duplicate" ARIA roles on HTLM5 tags -



html5 - "Duplicate" ARIA roles on HTLM5 tags -

what seeing on net lot aria roles on html5 tags exact duplicate (in meaning) of tag name itself. why want that? i'd deduct roles looking @ tag name.

for illustration on "aria role cheat sheet website" see following:

<nav role="navigation></nav> <main role="main"></main> <aside role="complimentory"></aside>

also in twitter bootstrap in examples form has role form: e.g <form role="form">

i'd say, no kidding? when has search role <form role="search"> provides context cannot deducted tag itself.

is right leave roles empty in before mentioned cases? not give apparent info tag.

the aria (accessible rich net applications) attributes meant used elements used create user interface in manner cannot deduced markup otherwise. reason may help user agents , assistive software help user such elements. think span element acts submit button, or checkbox, or text input widget.

so not expected utilize aria attributes elements used in simple, natural meanings. thus, in principle redundant declare role=navigation nav element, since element has role default and permitted role (as per current specs , drafts). @alohci points out, attribute may still help, if user agent advanced plenty recognize attribute not new plenty know element.

the document using wai-aria in html (working draft, 3 oct 2013) presents recommendations on explicitly specifying aria attributes, based on info user agents. such info of course of study mutable, can expect attibute specified redundant there remain redundant. in particular, says nav, main, , aside role attribute should specified, not form (because user agents certainly know form element).

in contrast, w3c html5 draft, moved lc status, says: “in bulk of cases setting aria role and/or aria-* attribute matches default implicit aria semantics unnecessary , not recommended these properties set browser.” says role attribute should not set nav, main, or aside when value match default value.

html5 wai-aria

Comments

Popular posts from this blog

model view controller - MVC Rails Planning -

ruby on rails - Devise Logout Error in RoR -

html - Submenu setup with jquery and effect 'fold' -