Sc4 1 1 Idref

Description

This test checks that each element referred to from an idref attribute exists.

Background

Assumptions

no known assumptions

Test properties

Property Value
Test name Reference elements
Test requirement 4.1.1 Parsing
Test mode Automatic
Test environment DOM
Test subject Single web page

Test procedure

Selector

Test mode: automatic

Select each label element with a for attribute and each element with a aria-activedescendant attribute. The CSS selector label[for], *[aria-activedescendant] can be used.

Step 1

Test mode: automatic

Outcome Passed
Testcase SC4-1-1-idref
Pointer selector result
ID SC4-1-1-idref-pass1
Outcome Failed
Testcase SC4-1-1-idref
Error The attribute {IdrefAttr} refers to an element that does not exist on the page.
Pointer selector result
ID SC4-1-1-idref-fail1