Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2013-01-11 12:29:34

phiw13
Plugin Author
From: Japan
Registered: 2004-02-27
Posts: 3,196
Website

<span role="presentation"> ?

I noticed recently that the recent svn builds use <span role="presentation"> many times on spans wrapped around characters like ‘[’ or ‘]’ (the Articles tab is full of them). As far as I understand the intent of the attribute, it simply removes the semantics associated with a particular HTML element, but leaves the text content of the element exposed to AT.

If the intent is to hide those square brackets from AT, I think aria-hidden="true" would be more appropriate.


Where is that emoji for a solar powered submarine when you need it ?
Sand space – admin theme for Textpattern

Offline

#2 2013-01-16 12:45:21

philwareham
Core designer
From: Haslemere, Surrey, UK
Registered: 2009-06-11
Posts: 3,564
Website GitHub Mastodon

Re: <span role="presentation"> ?

Yeah, I think you’re right there – we want screen readers to ignore those spans so the aria-hidden attribute does seem to be a more logical choice. I’ll amend.

Thanks.

Edit: now done in SVN.

Offline

Board footer

Powered by FluxBB