diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 09:22:09 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 09:22:09 +0000 |
commit | 43a97878ce14b72f0981164f87f2e35e14151312 (patch) | |
tree | 620249daf56c0258faa40cbdcf9cfba06de2a846 /testing/web-platform/tests/conformance-checkers/html/attributes | |
parent | Initial commit. (diff) | |
download | firefox-upstream.tar.xz firefox-upstream.zip |
Adding upstream version 110.0.1.upstream/110.0.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/tests/conformance-checkers/html/attributes')
14 files changed, 117 insertions, 0 deletions
diff --git a/testing/web-platform/tests/conformance-checkers/html/attributes/accesskey/duplicate-key-labels-novalid.html b/testing/web-platform/tests/conformance-checkers/html/attributes/accesskey/duplicate-key-labels-novalid.html new file mode 100644 index 0000000000..1c9800d627 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html/attributes/accesskey/duplicate-key-labels-novalid.html @@ -0,0 +1,9 @@ +<!DOCTYPE html> +<html> +<head><meta charset="UTF-8"> +<title>accesskey attribute with duplicate key labels</title> +</head> +<body> +<a href=url accesskey="a b ぬ c ぬ">foo</a> +</body> +</html> diff --git a/testing/web-platform/tests/conformance-checkers/html/attributes/accesskey/multi-character-key-label-novalid.html b/testing/web-platform/tests/conformance-checkers/html/attributes/accesskey/multi-character-key-label-novalid.html new file mode 100644 index 0000000000..303e1ea92e --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html/attributes/accesskey/multi-character-key-label-novalid.html @@ -0,0 +1,9 @@ +<!DOCTYPE html> +<html> +<head><meta charset="UTF-8"> +<title>accesskey attribute with multi-character key label</title> +</head> +<body> +<a href=url accesskey="a b ほげ">foo</a> +</body> +</html> diff --git a/testing/web-platform/tests/conformance-checkers/html/attributes/data/no-characters-after-hyphen-novalid.html b/testing/web-platform/tests/conformance-checkers/html/attributes/data/no-characters-after-hyphen-novalid.html new file mode 100644 index 0000000000..b30b1f9a71 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html/attributes/data/no-characters-after-hyphen-novalid.html @@ -0,0 +1,4 @@ +<!doctype html> +<meta charset=utf-8> +<title>starts with the string "data-", has at least one character after the hyphen, is XML-compatible, and contains no uppercase ASCII letters</title> +<p data-=""> <!-- no characters after the hypen --> diff --git a/testing/web-platform/tests/conformance-checkers/html/attributes/data/not-xml-serializable-novalid.html b/testing/web-platform/tests/conformance-checkers/html/attributes/data/not-xml-serializable-novalid.html new file mode 100644 index 0000000000..7bcbfcbf5e --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html/attributes/data/not-xml-serializable-novalid.html @@ -0,0 +1,4 @@ +<!doctype html> +<meta charset=utf-8> +<title>starts with the string "data-", has at least one character after the hyphen, is XML-compatible, and contains no uppercase ASCII letters</title> +<p data-z:foo=""><!-- not serializable as XML --> diff --git a/testing/web-platform/tests/conformance-checkers/html/attributes/data/value-isvalid.html b/testing/web-platform/tests/conformance-checkers/html/attributes/data/value-isvalid.html new file mode 100644 index 0000000000..96f0917d48 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html/attributes/data/value-isvalid.html @@ -0,0 +1,7 @@ +<!doctype html> +<meta charset=utf-8> +<title>valid data-</title> +<!-- starts with the string "data-", has at least one character after the hyphen, is XML-compatible, and contains no uppercase ASCII letters --> +<p data-z=""> +<!-- starts with the string "data-", has at least one character after the hyphen, is XML-compatible, and contains no uppercase ASCII letters --> +<p data-78zxyabc123-foo_bar_baz=""> diff --git a/testing/web-platform/tests/conformance-checkers/html/attributes/lang/deprecated-tag-haswarn.html b/testing/web-platform/tests/conformance-checkers/html/attributes/lang/deprecated-tag-haswarn.html new file mode 100644 index 0000000000..4fc1aaaafc --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html/attributes/lang/deprecated-tag-haswarn.html @@ -0,0 +1,9 @@ +<!DOCTYPE html> +<html> +<head> +<title>must be a valid BCP 47 language tag, or the empty string</title> +<meta charset=utf-8> +</head> +<body lang=mo><!-- deprecated subtag --> +</body> +</html> diff --git a/testing/web-platform/tests/conformance-checkers/html/attributes/lang/empty-isvalid.html b/testing/web-platform/tests/conformance-checkers/html/attributes/lang/empty-isvalid.html new file mode 100644 index 0000000000..f88354d019 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html/attributes/lang/empty-isvalid.html @@ -0,0 +1,10 @@ +<!DOCTYPE html> +<html lang=""> +<head> +<meta charset=utf-8> +<title>must be a valid BCP 47 language tag, or the empty string</title> +</head> +<body> +<p></p> +</body> +</html> diff --git a/testing/web-platform/tests/conformance-checkers/html/attributes/lang/extlang-bad-novalid.html b/testing/web-platform/tests/conformance-checkers/html/attributes/lang/extlang-bad-novalid.html new file mode 100644 index 0000000000..7908f08c3f --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html/attributes/lang/extlang-bad-novalid.html @@ -0,0 +1,9 @@ +<!DOCTYPE html> +<html> +<head> +<title>must be a valid BCP 47 language tag, or the empty string</title> +<meta charset=utf-8> +</head> +<body lang=bat-smg><!-- bad extlang --> +</body> +</html> diff --git a/testing/web-platform/tests/conformance-checkers/html/attributes/lang/xmllang-different-value-novalid.html b/testing/web-platform/tests/conformance-checkers/html/attributes/lang/xmllang-different-value-novalid.html new file mode 100644 index 0000000000..8e9f82fe51 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html/attributes/lang/xmllang-different-value-novalid.html @@ -0,0 +1,10 @@ +<!DOCTYPE html> +<html xml:lang="en" lang="fr"> +<head> +<meta charset=utf-8> +<title>When "xml:lang" is specified, the element must also have "lang" present with the same value</title> +</head> +<body> +<p></p> +</body> +</html> diff --git a/testing/web-platform/tests/conformance-checkers/html/attributes/lang/xmllang-only-novalid.html b/testing/web-platform/tests/conformance-checkers/html/attributes/lang/xmllang-only-novalid.html new file mode 100644 index 0000000000..7f4571ef12 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html/attributes/lang/xmllang-only-novalid.html @@ -0,0 +1,10 @@ +<!DOCTYPE html> +<html xml:lang="en"> +<head> +<meta charset=utf-8> +<title>When "xml:lang" is specified, the element must also have "lang" present with the same value</title> +</head> +<body> +<p></p> +</body> +</html> diff --git a/testing/web-platform/tests/conformance-checkers/html/attributes/lang/xmllang-same-isvalid.html b/testing/web-platform/tests/conformance-checkers/html/attributes/lang/xmllang-same-isvalid.html new file mode 100644 index 0000000000..71418a5f62 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html/attributes/lang/xmllang-same-isvalid.html @@ -0,0 +1,10 @@ +<!DOCTYPE html> +<html xml:lang="en" lang="en"> +<head> +<meta charset=utf-8> +<title>When "xml:lang" is specified, the element must also have "lang" present with the same value</title> +</head> +<body> +<p></p> +</body> +</html> diff --git a/testing/web-platform/tests/conformance-checkers/html/attributes/role/unrecognized-role-name-novalid.html b/testing/web-platform/tests/conformance-checkers/html/attributes/role/unrecognized-role-name-novalid.html new file mode 100644 index 0000000000..b7b7f726b8 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html/attributes/role/unrecognized-role-name-novalid.html @@ -0,0 +1,5 @@ +<!DOCTYPE html> +<meta charset=utf-8> +<title>The attribute value MUST allow a token list as the value</title> +<input type=checkbox aria-checked=true role="switch menuitemcheckbox checkbox input"> +<!-- "switch" & "input" are unrecognized; "checkbox" is superfluous --> diff --git a/testing/web-platform/tests/conformance-checkers/html/attributes/spellcheck/value-bad-novalid.html b/testing/web-platform/tests/conformance-checkers/html/attributes/spellcheck/value-bad-novalid.html new file mode 100644 index 0000000000..6cbf57e787 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html/attributes/spellcheck/value-bad-novalid.html @@ -0,0 +1,10 @@ +<!DOCTYPE html> +<html> +<head> +<meta charset=utf-8> +<title>spellcheck="badvalue"</title> +</head> +<body> +<p spellcheck="badvalue"></p> +</body> +</html> diff --git a/testing/web-platform/tests/conformance-checkers/html/attributes/spellcheck/value-isvalid.html b/testing/web-platform/tests/conformance-checkers/html/attributes/spellcheck/value-isvalid.html new file mode 100644 index 0000000000..2ce71c581b --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html/attributes/spellcheck/value-isvalid.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html> +<head> +<meta charset=utf-8> +<title>valid spellcheck</title> +</head> +<body> +<p spellcheck="true"></p> +<p spellcheck="false"></p> +</body> +</html> |