Warning:
This wiki has been archived and is now read-only.
SC4-1-1-unique-attrs
From Automated WCAG Monitoring Community Group
(Redirected from SC411-unique-attrs)
This test belongs to 4.1.1 Parsing.
Status
Contents
Description
This test checks that attributes of an element are unique.
Background
Assumptions
no known assumptions
Test properties
| Property | Possible values |
|---|---|
| Test requirement | 4.1.1 Parsing |
| Test mode | automatic |
| Test environment | HTML source |
| Test subject | single web page |
Test procedure
Selector
Test mode:
earl:automatic
Select all opening tags in the HTML document
Step 1
Test mode:
earl:automatic
- Make a list of all the attribute names on the current tag
- IF any of the attributes occurs more the once:
- Return SC4-1-1-unique-attrs-fail1
- ELSE Return SC4-1-1-unique-attrs-pass1
| Property | Value |
|---|---|
| TestCase | SC4-1-1-unique-attrs |
| Identifier | SC4-1-1-unique-attrs-pass1 |
| Outcome | passed |
| Pointer | selector result |
| Info |
| Property | Value |
|---|---|
| TestCase | SC4-1-1-unique-attrs |
| Identifier | SC4-1-1-unique-attrs-fail1 |
| Outcome | failed |
| ErrorMessage | Attribute <attribute-name> was used more then once on the element <pointer> |
| Pointer | selector result |
| Info |