Until user agents allow users to turn off spawned windows, do not cause pop-ups or other windows to appear and do not change the current window without informing the user. [Priority 2]
(Voir http://www.w3.org/TR/WCAG10/#tech-avoid-pop-ups et les techniques à http://www.w3.org/TR/WAI-WEBCONTENT-TECHS/#tech-avoid-pop-ups)
Ce test a pour but de détecter les attributs target qui provoquent l'ouverture d'une nouvelle fenêtre, sans que l'utilisateur n'en soit averti.
//a[@target!='_self' et @target!='_parent' et @target!='_top']
//area[@target!='_self' et @target!='_parent' et @target!='_top']
//form[@target!='_self' et @target!='_parent' et @target!='_top']
//link[@target!='_self' et @target!='_parent' et @target!='_top']
Ce test a pour but de détecter les éléments base ayant un attribut target qui provoque l'ouverture d'une nouvelle fenêtre, sans que l'utilisateur n'en soit averti.
//base[@target!='_self' et @target!='_parent' et @target!='_top']
Ce test a pour but de détecter les scripts qui déclenchent l'ouverture d'une nouvelle fenêtre sans que l'utilisateur n'en soit averti.
//script
//*/@onblur
//*/@onchange
//*/@onfocus
//*/@onload
//*/@onreset
//*/@onselect
//*/@onsubmit
//*/@onunload
//a[starts-with(@href, 'javascript:')]
Until user agents support explicit associations between labels and form controls, for all form controls with implicitly associated labels, ensure that the label is properly positioned. [Priority 2]
(Voir http://www.w3.org/TR/WCAG10/#tech-unassociated-labels et les techniques à http://www.w3.org/TR/WAI-WEBCONTENT-TECHS/#tech-unassociated-labels)
Ce test a pour but de détecter des contrôles de formulaire ayant des labels implicitement associés et mal positionnés.
//input[not(@type='hidden')][not(@type='submit')][not(@type='button')]
[not(@type='reset')]
//select
//textarea