diff options
Diffstat (limited to 'testing/web-platform/tests/conformance-checkers/html/elements/h2')
-rw-r--r-- | testing/web-platform/tests/conformance-checkers/html/elements/h2/model-isvalid.html | 17 | ||||
-rw-r--r-- | testing/web-platform/tests/conformance-checkers/html/elements/h2/model-novalid.html | 29 |
2 files changed, 46 insertions, 0 deletions
diff --git a/testing/web-platform/tests/conformance-checkers/html/elements/h2/model-isvalid.html b/testing/web-platform/tests/conformance-checkers/html/elements/h2/model-isvalid.html new file mode 100644 index 0000000000..d1767ecaf6 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html/elements/h2/model-isvalid.html @@ -0,0 +1,17 @@ +<!DOCTYPE html> +<html> +<head> + <meta charset=utf-8> + <title><h2></title> +</head> +<body> + <!-- is block --> + <h2 class="class" id="id" lang="en">text</h2> + + <!-- can contain strictly inline --> + <h2>text <em>elem</em></h2> + + <!-- can contain interactive --> + <h2><a>text</a></h2> +</body> +</html> diff --git a/testing/web-platform/tests/conformance-checkers/html/elements/h2/model-novalid.html b/testing/web-platform/tests/conformance-checkers/html/elements/h2/model-novalid.html new file mode 100644 index 0000000000..f4374f4fbf --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html/elements/h2/model-novalid.html @@ -0,0 +1,29 @@ +<!DOCTYPE html> +<html> +<head> + <meta charset=utf-8> + <title><h2></title> +</head> +<body> + <!-- is not strictly inline --> + <p><dfn>text + <h2>more text</h2> + </dfn></p> + + <!-- is not structured inline --> + <p>text + <h2>more text</h2> + </p> + + <!-- cannot contain blocks --> + <h2> + <p>p1</p> + <p>p2</p> + </h2> + + <!-- cannot contain structured inline --> + <h2>text + <ul><li>text</li></ul> + </h2> +</body> +</html> |