AW21 Rule 7.5.1

  • warning: Invalid argument supplied for foreach() in /home/tanaguru/www/sites/all/modules/contrib/cck/theme/content-field.tpl.php on line 35.
  • warning: Invalid argument supplied for foreach() in /home/tanaguru/www/sites/all/modules/contrib/cck/theme/content-field.tpl.php on line 35.
  • warning: Invalid argument supplied for foreach() in /home/tanaguru/www/sites/all/modules/contrib/cck/theme/content-field.tpl.php on line 35.
  • warning: Invalid argument supplied for foreach() in /home/tanaguru/www/sites/all/modules/contrib/cck/theme/content-field.tpl.php on line 35.
  • warning: Invalid argument supplied for foreach() in /home/tanaguru/www/sites/all/modules/contrib/cck/theme/content-field.tpl.php on line 35.
  • warning: Invalid argument supplied for foreach() in /home/tanaguru/www/sites/all/modules/contrib/cck/theme/content-field.tpl.php on line 35.
  • warning: Invalid argument supplied for foreach() in /home/tanaguru/www/sites/all/modules/contrib/cck/theme/content-field.tpl.php on line 35.
  • warning: Invalid argument supplied for foreach() in /home/tanaguru/www/sites/all/modules/contrib/cck/theme/content-field.tpl.php on line 35.
  • warning: Invalid argument supplied for foreach() in /home/tanaguru/www/sites/all/modules/contrib/cck/theme/content-field.tpl.php on line 35.
  • warning: Invalid argument supplied for foreach() in /home/tanaguru/www/sites/all/modules/contrib/cck/theme/content-field.tpl.php on line 35.
  • warning: Invalid argument supplied for foreach() in /home/tanaguru/www/sites/all/modules/contrib/cck/theme/content-field.tpl.php on line 35.

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 :

Technical description

Scope :
Decision level :

Algorithm

Selection

Set1 (SELECT tags with an "onchange" attribute)

All the <select> tags with an "onchange" attribute

Set2 (SELECT tags within a form without submit button)

All the <select> tags within a <form> tags but without siblings of type <input> with a "type" attribute equals to "submit, or of type <button>

Process

Test1

For each occurence of Set1 or Set2, raise a MessageA

MessageA : Context changed by script detected
  • code :ContextChangedScriptDetected
  • status: NMI
  • parameter : tag name
  • present in source : yes

Analysis

NMI

In all cases

Notes

No notes yet for that rule