diff options
Diffstat (limited to 'testing/web-platform/tests/conformance-checkers/html/elements/abbr')
-rw-r--r-- | testing/web-platform/tests/conformance-checkers/html/elements/abbr/model-isvalid.html | 24 | ||||
-rw-r--r-- | testing/web-platform/tests/conformance-checkers/html/elements/abbr/model-novalid.html | 18 |
2 files changed, 42 insertions, 0 deletions
diff --git a/testing/web-platform/tests/conformance-checkers/html/elements/abbr/model-isvalid.html b/testing/web-platform/tests/conformance-checkers/html/elements/abbr/model-isvalid.html new file mode 100644 index 0000000000..59518af288 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html/elements/abbr/model-isvalid.html @@ -0,0 +1,24 @@ +<!DOCTYPE html> +<html> +<head> + <meta charset=utf-8> + <title><abbr></title> +</head> +<body> + <!-- is structured inline --> + <p><abbr class="class" lang="en" title=''>text</abbr></p> + + <!-- is strictly inline --> + <p><dfn><abbr title="text1" class="class" lang="en">text</abbr></dfn></p> + + <!-- can be empty --> + <p>text <abbr title=''></abbr></p> + <p>text <dfn><abbr title=''></abbr></dfn></p> + + <!-- can contain interactive --> + <p><abbr title=''><a>text</a></abbr></p> + <p><dfn><abbr title=''><a>text</a></abbr></dfn></p> + + <!-- cannot contain structured inline --> +</body> +</html> diff --git a/testing/web-platform/tests/conformance-checkers/html/elements/abbr/model-novalid.html b/testing/web-platform/tests/conformance-checkers/html/elements/abbr/model-novalid.html new file mode 100644 index 0000000000..924c98ea30 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html/elements/abbr/model-novalid.html @@ -0,0 +1,18 @@ +<!DOCTYPE html> +<html> +<head> + <meta charset=utf-8> + <title><abbr></title> +</head> +<body> + <!-- not a block --> + <abbr>text</abbr> + + <!-- cannot contain structured inline --> + <p><abbr><ul><li>text</li></ul></abbr></p> + + <!-- cannot contain interactive if parent forbids interactive --> + <p><a><abbr><a>text</a></abbr></a></p> + <p><a><dfn><abbr><a>text</a></abbr></dfn></a></p> +</body> +</html> |