Comments on: HTML Developers: Please Consider https://stevefaulkner.github.io/html5doctored/html-developers-please-consider/ helping you implement HTML5 today Wed, 04 May 2016 10:02:12 +0000 hourly 1 By: David MacDonald https://stevefaulkner.github.io/html5doctored/html-developers-please-consider/#comment-2100419 Fri, 11 Mar 2016 20:44:08 +0000 http://html5doctor.com/?p=5930#comment-2100419 I recently had a client use html required … it was messy for assistive technology out of the box. The error message threw the user into the first field with error and read “Please fill in this field” but no AT I tested read the label when it through the user into that field…

although it is highly customizable, and could be fixed with a custom message etc… I found it easier to use aria-required … and rely on JS error message insertion into the DOM…

]]>
By: Steve Faulkner https://stevefaulkner.github.io/html5doctored/html-developers-please-consider/#comment-2065900 Thu, 10 Dec 2015 11:18:03 +0000 http://html5doctor.com/?p=5930#comment-2065900

I’ve had push back on removing landmark roles like what Jeremy indicated because of IE support being poor all the way up to IE11. Sadly, it’ll probably take a couple more years for the industry to move past the pains of IE to stop using landmark roles in markup by default unless the work is cutting edge and not supporting screen readers using IE.

I understand this, which is why the conformance rules are SHOULD NOT as against MUST NOT. I discuss RFC terms in this article: Short Note on HTML conformance checking. It is also worth reading HTML5 – Check it Before you Wreck it with Mike[tm] Smith, which provides insight into HTML conformance checking.

But note that IE has never supported exposure of h1-h6 via accessibility APIs (unlike all other major browsers) and as a result Assitive Tech have hacked around such bugs by pulling information from the DOM. The newer versions of screen readers are doing the same for landmarks in IE.

I’ve never heard of or seen any developer consider using most ARIA roles for other elements like the ones you indicated above so I would imagine the use case for even considering them is quite small.

I look at web application code on a daily basis, as part of my job, and find examples of recreation of native HTML features (roles, states and properties) on a regular basis. I am not saying it is common, but neither is it uncommon.

]]>
By: Micah https://stevefaulkner.github.io/html5doctored/html-developers-please-consider/#comment-2065638 Wed, 09 Dec 2015 18:15:29 +0000 http://html5doctor.com/?p=5930#comment-2065638 I’ve had push back on removing landmark roles like what Jeremy indicated because of IE support being poor all the way up to IE11. Sadly, it’ll probably take a couple more years for the industry to move past the pains of IE to stop using landmark roles in markup by default unless the work is cutting edge and not supporting screen readers using IE.

I’ve never heard of or seen any developer consider using most ARIA roles for other elements like the ones you indicated above so I would imagine the use case for even considering them is quite small.

]]>
By: Steve Faulkner https://stevefaulkner.github.io/html5doctored/html-developers-please-consider/#comment-2065607 Wed, 09 Dec 2015 16:25:32 +0000 http://html5doctor.com/?p=5930#comment-2065607 @Jeremy On HTML belts and ARIA braces (The Default Implicit ARIA semantics they didn’t want you to know about) may be helpful in answering your question.

(the validator would seem to indicate that this could be actively harmful now)

What the validator says is for example “Warning: Element header does not need a role attribute.” which is shy of indicating it’s actively harmful (though in some circumstances it may be). It warns for all HTML elements that have a default implicit ARIA role semantic (i.e. the role exposed by browsers via accessibility APIs has a corresponding ARIA role mapping). The HTML conformance rules are defined in ARIA in HTML:

Default Implicit ARIA semantics – SHOULD NOT be used

If it was actively harmful in the majority of instances it would be a MUST NOT rather than SHOULD NOT requirement in the spec. and the validator would emit an error. What the rules are designed to do is reduce redundant, unneccessary (cargo cult) use of ARIA semantics, to reduce cruft and possible introduction of semantic mis-information.

]]>
By: Jeremy Keith https://stevefaulkner.github.io/html5doctored/html-developers-please-consider/#comment-2065595 Wed, 09 Dec 2015 15:57:00 +0000 http://html5doctor.com/?p=5930#comment-2065595 Is it also safe to stop marking up the newer structural elements with landmark roles like <main role="main">, <nav role="navigation">, <aside role="complentary">?

(the validator would seem to indicate that this could be actively harmful now)

]]>