summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/conformance-checkers/xhtml/elements/code
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/conformance-checkers/xhtml/elements/code')
-rw-r--r--testing/web-platform/tests/conformance-checkers/xhtml/elements/code/010-isvalid.xhtml20
1 files changed, 20 insertions, 0 deletions
diff --git a/testing/web-platform/tests/conformance-checkers/xhtml/elements/code/010-isvalid.xhtml b/testing/web-platform/tests/conformance-checkers/xhtml/elements/code/010-isvalid.xhtml
new file mode 100644
index 000000000..ed6aa2c4b
--- /dev/null
+++ b/testing/web-platform/tests/conformance-checkers/xhtml/elements/code/010-isvalid.xhtml
@@ -0,0 +1,20 @@
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+ <title>&lt;code&gt;</title>
+</head>
+<body>
+ <!-- is structured inline -->
+ <p><code class="class" xml:lang="en">text</code></p>
+
+ <!-- is strictly inline -->
+ <p><dfn><code class="class" xml:lang="en">text</code></dfn></p>
+
+ <!-- can be empty -->
+ <p>text <code></code></p>
+ <p>text <dfn><code></code></dfn></p>
+
+ <!-- can contain interactive -->
+ <p><code><a>text</a></code></p>
+ <p><dfn><code><a>text</a></code></dfn></p>
+</body>
+</html>