diff --git a/lib/rules/bypass.json b/lib/rules/bypass.json index 66eeed206a..286ae3e692 100644 --- a/lib/rules/bypass.json +++ b/lib/rules/bypass.json @@ -1,7 +1,7 @@ { "id": "bypass", "impact": "serious", - "selector": "html", + "selector": "html:not(html *)", "pageLevel": true, "matches": "bypass-matches", "reviewOnFail": true, diff --git a/lib/rules/css-orientation-lock.json b/lib/rules/css-orientation-lock.json index ed7f7e6cb6..3061e29e01 100644 --- a/lib/rules/css-orientation-lock.json +++ b/lib/rules/css-orientation-lock.json @@ -1,7 +1,7 @@ { "id": "css-orientation-lock", "impact": "serious", - "selector": "html", + "selector": "html:not(html *)", "tags": [ "cat.structure", "wcag134", diff --git a/lib/rules/document-title.json b/lib/rules/document-title.json index d540894cbd..27f888adbd 100644 --- a/lib/rules/document-title.json +++ b/lib/rules/document-title.json @@ -1,7 +1,7 @@ { "id": "document-title", "impact": "serious", - "selector": "html", + "selector": "html:not(html *)", "matches": "is-initiator-matches", "tags": [ "cat.text-alternatives", diff --git a/lib/rules/frame-focusable-content.json b/lib/rules/frame-focusable-content.json index adff77b98a..f646e9a141 100644 --- a/lib/rules/frame-focusable-content.json +++ b/lib/rules/frame-focusable-content.json @@ -1,7 +1,7 @@ { "id": "frame-focusable-content", "impact": "serious", - "selector": "html", + "selector": "html:not(html *)", "matches": "frame-focusable-content-matches", "tags": [ "cat.keyboard", diff --git a/lib/rules/frame-tested.json b/lib/rules/frame-tested.json index c844258d0f..4b3d705cb3 100644 --- a/lib/rules/frame-tested.json +++ b/lib/rules/frame-tested.json @@ -1,7 +1,7 @@ { "id": "frame-tested", "impact": "critical", - "selector": "html, frame, iframe", + "selector": "html:not(html *), frame, iframe", "tags": ["cat.structure", "best-practice", "review-item"], "metadata": { "description": "Ensure
+
+ diff --git a/test/integration/full/frame-tested/frame-tested-pass.html b/test/integration/full/frame-tested/frame-tested-pass.html index faea10eaaa..0574199d27 100644 --- a/test/integration/full/frame-tested/frame-tested-pass.html +++ b/test/integration/full/frame-tested/frame-tested-pass.html @@ -22,6 +22,13 @@
+
+ diff --git a/test/integration/full/html-has-lang/html-has-lang-pass.html b/test/integration/full/html-has-lang/html-has-lang-pass.html index ef6ad8a5b0..73c02c2827 100644 --- a/test/integration/full/html-has-lang/html-has-lang-pass.html +++ b/test/integration/full/html-has-lang/html-has-lang-pass.html @@ -27,6 +27,13 @@ -->
+
+ diff --git a/test/integration/full/html-lang-valid/html-lang-valid.html b/test/integration/full/html-lang-valid/html-lang-valid.html index fd19053747..19a6e71908 100644 --- a/test/integration/full/html-lang-valid/html-lang-valid.html +++ b/test/integration/full/html-lang-valid/html-lang-valid.html @@ -23,6 +23,13 @@
+
+ diff --git a/test/integration/full/landmark-one-main/landmark-one-main-pass1.html b/test/integration/full/landmark-one-main/landmark-one-main-pass1.html index 28662d483b..5416dc2761 100644 --- a/test/integration/full/landmark-one-main/landmark-one-main-pass1.html +++ b/test/integration/full/landmark-one-main/landmark-one-main-pass1.html @@ -22,6 +22,13 @@

No main content

+
+ diff --git a/test/integration/full/page-has-heading-one/page-has-heading-one-pass1.html b/test/integration/full/page-has-heading-one/page-has-heading-one-pass1.html index 8ded48e7ad..aa51dbe768 100644 --- a/test/integration/full/page-has-heading-one/page-has-heading-one-pass1.html +++ b/test/integration/full/page-has-heading-one/page-has-heading-one-pass1.html @@ -22,6 +22,13 @@

No h1 content

+
+