Sc4 1 1 Tag Nesting

Description

This test checks that tags of an HTML or XHTML document are nested correctly. So that elements that must be closed are, elements that shouldn’t be aren’t, and that elements are closed in the correct order.

Background

Assumptions

no known assumptions

Test properties

Property Value
Test requirement 4.1.1 Parsing
Test mode Automatic
Test environment HTML source
Test subject Single web page

Test procedure

Selector

Test mode: automatic

Select all opening and closing tags in the HTML document

Step 1: Verify opening tag attributes=

Test mode: automatic

Step 2: Check unclosed opening tags=

Test mode: automatic

Outcome Failed
Testcase SC4-1-1-tag-nesting
Error This element requires a closing tag.
Pointer selector result
ID SC4-1-1-tag-nesting-fail1
Outcome Failed
Testcase SC4-1-1-tag-nesting
Error Element must use self-closing syntax.
Pointer selector result
ID SC4-1-1-tag-nesting-fail2
Outcome Passed
Testcase SC4-1-1-tag-nesting
Pointer selector result
ID SC4-1-1-tag-nesting-pass1

Step 3: Check that tags are closed in the right place=

Test mode: automatic

Outcome Passed
Testcase SC4-1-1-tag-nesting
Pointer selector result
ID SC4-1-1-tag-nesting-pass2
Outcome Failed
Testcase SC4-1-1-tag-nesting
Error Element is incorrectly nested
Pointer selector result
ID SC4-1-1-tag-nesting-fail3

Step 4: Closing tags have a corresponding opening tag=

Outcome Failed
Testcase SC4-1-1-tag-nesting
Error Closing tag does not have a corresponding opening tag
Pointer selector result
ID SC4-1-1-tag-nesting-fail4