Accessibilité vérifiée avec ht tp://tenon.io/

RealET <[email protected]>
Newsgroups gmane.comp.web.spip.devel
Organization RealET
Message-ID <[email protected]>
Bonjour,

Olivier Noury m'a invité à regarder du côté de ce validateur 
d'accessibilité : http://tenon.io/
Sur un site en 3.1, il me reste 1 erreur :
<p 
style="float:left;width:0;height:0;position:absolute;left:-5000px;top:-5000px;"><input 
type="hidden" name="spip_virtualbufferupdate" 
id="spip_virtualbufferupdate" value="0" style=""></p>

Error /  priority 86%
Empty paragraph found
Web Content Accessibility Guidelines (WCAG) 2.0, Level AA: 1.4.5 Images 
of Text

A paragraph was found without text in it. While this tends to have a low 
severity, it does create an unnecessary nuisance for users of screen 
readers who are likely to hear the announcement of the empty paragraph 
as they navigate through content. If this empty paragraph exists to 
behave as margin, use CSS for this purpose instead.

Or, à lire le code source de ajaxCallback.js, ce paragraphe vide semble 
avoir été créé spécifiquement pour Jaws, donc pour l'accessibilité :
// deux fonctions pour rendre l'ajax compatible Jaws
jQuery.spip.virtualbuffer_id='spip_virtualbufferupdate';
jQuery.spip.initReaderBuffer = function(){
	if (jQuery('#'+jQuery.spip.virtualbuffer_id).length) return;
	jQuery('body').append('<p 
style="float:left;width:0;height:0;position:absolute;left:-5000px;top:-5000px;"><input 
type="hidden" name="'+jQuery.spip.virtualbuffer_id+'" 
id="'+jQuery.spip.virtualbuffer_id+'" value="0" /></p>');
}

Est-ce qu'un div à la place du p ferait l'affaire ?

PS : je n'ai pas fait de ticket pour l'instant

-- 
RealET
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.