AW21 Rule 11.8.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 each <optgroup> in a <select> tag has a label attribute.

Business description

Criterion :

11.8

Test :

11.8.2

Test description :

In each selection list (select tag), does each list item grouping (optgroup tag) have a label attribute?

Level :

Technical description

Scope :
Decision level :

Algorithm

Selection

Set1 : All the <optgroup> tags within a <select> tag

Process

Test1

For each element of Set1, test the presence of a label attribute

For each occurence of false-result of Test1, raise a MessageA

MessageA : Optgroup without label
  • code :OptgroupWithoutLabel
  • status: Failed
  • parameter : tag name
  • present in source : yes

Analysis

NA

Selection is empty (The page has no optgroup in a select tag)

Failed

Test1 returns false for at least one element.

Passed

Test1 returns true for all the elements.

Notes

No notes yet for that rule