Asqatasun v4 - AccessiWeb 2.2 - Rule 7.5.1
Summary
This test consists in extracting scripts that potentially change the context and let the user check manually whether the change of context is initiated by an explicit button, whether the change of context is initiated by an explicit link or whether the user is warned by a text about the script action and the kind of change before it is activated.
Business description
Criterion : 7.5
Test : 7.5.1
Test description :
Does each script initiating a change of context pass one of the conditions below?
- The user is warned by a text about the script action and the kind of change before it is activated
- The change of context is initiated by an explicit button (input of type submit or button)
- The change of context is initiated by an explicit link
Level : Bronze
Technical description
Scope : page
Decision level : semidecidable
Algorithm
Selection
Set1
All the <select>
tags with an onchange
attribute (select[onchange]
)
Set2
All the <form>
tags with a <select>
child but without child of type button
, <input type='submit'>
, <input type='button'>
or <input type='reset'>
(form:has(select):not(:has(button)):not(:has(input[type=submit])):not(:has(input[type=button])):not(:has(input[type=reset]))
)
Process
Test1
For each occurence of Set1 and Set2, raise a MessageA
Test2
If Set1 AND Set2 are empty, raise a MessageB
MessageA : Context changed by script detected
- code :ContextChangedScriptDetected
- status: NMI
- parameter : snippet
- present in source : yes
MessageB : No Pattern detected
- code : NoPatternDetected_AW22-07051
- status: NMI
- present in source : no
Analysis
Pre-qualified
In all cases
Notes
No notes yet for that rule