AW21 Rule 11.2.2

  • 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 checking whether the function of each form field is defined through its title attribute

Business description

Criterion :

11.2

Test :

11.2.2

Test description :

Does each title attribute allow to know the exact function of the form field (input tag of type text, password, checkbox, radio, file, or textarea and select tags) with which it is associated?

Level :

Technical description

Scope :
Decision level :

Algorithm

Selection

  • All the <input> tags with a "title" attribute and a "type" attribute equals to:
    • "text"
    • or "password"
    • or "checkbox"
    • or "radio"
    • or "file"
  • AND all the <textarea> tags with a "title" attribute
  • AND all the <select> tags with a "title" attribute

Process

The selection handles the process.

For each occurence of the selection raise a MessageA

MessageA : Check Manually the elements
  • code :ManualCheckOnElements
  • status: NMI
  • parameter : tag name
  • present in source : yes

Analysis

NA

Selection is empty

NMI

The selection is not empty

Notes

  • We only detect the elements of the scope of the test to determine whether the test is applicable
  • We assume here that the raised messages focus on the <form> element and not on the form fields