summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/conformance-checkers/html/attributes/lang
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/conformance-checkers/html/attributes/lang')
-rw-r--r--testing/web-platform/tests/conformance-checkers/html/attributes/lang/deprecated-tag-haswarn.html9
-rw-r--r--testing/web-platform/tests/conformance-checkers/html/attributes/lang/empty-isvalid.html10
-rw-r--r--testing/web-platform/tests/conformance-checkers/html/attributes/lang/extlang-bad-novalid.html9
-rw-r--r--testing/web-platform/tests/conformance-checkers/html/attributes/lang/xmllang-different-value-novalid.html10
-rw-r--r--testing/web-platform/tests/conformance-checkers/html/attributes/lang/xmllang-only-novalid.html10
-rw-r--r--testing/web-platform/tests/conformance-checkers/html/attributes/lang/xmllang-same-isvalid.html10
6 files changed, 58 insertions, 0 deletions
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>