Sc4 1 1 Id

Description

This test checks id attribute for all elements to have a unique value.

Background

Assumptions

no known assumptions

Test properties

Property Value
Test name Define ids for 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 any element with an id attribute. The following CSS selector could be used: *[id]

Step 1

Test mode: automatic

Outcome Passed
Testcase SC4-1-1-id
Pointer selector result
ID SC4-1-1-id-pass1
Outcome Failed
Testcase SC4-1-1-id
Error The ID of this element has occurred before on this page
Pointer selector result
ID SC4-1-1-id-fail1