summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorSharzy <me@sharzy.in>2025-02-25 00:35:13 +0800
committerGitHub <noreply@github.com>2025-02-24 16:35:13 +0000
commit36d83c8c092e7984eaa03dbecc1083f49da13129 (patch)
tree48dfeaa213fcf51f16a7b8324a72d856d36872bb /tests
parent3744c99b07f97a954a8468bef5fdb08c5c7914d7 (diff)
HTML export: fix elem counting on classify_output (#5910)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/ref/html/html-elem-alone-context.html2
-rw-r--r--tests/suite/html/elem.typ7
2 files changed, 9 insertions, 0 deletions
diff --git a/tests/ref/html/html-elem-alone-context.html b/tests/ref/html/html-elem-alone-context.html
new file mode 100644
index 00000000..69e9da41
--- /dev/null
+++ b/tests/ref/html/html-elem-alone-context.html
@@ -0,0 +1,2 @@
+<!DOCTYPE html>
+<html></html>
diff --git a/tests/suite/html/elem.typ b/tests/suite/html/elem.typ
new file mode 100644
index 00000000..81ab9457
--- /dev/null
+++ b/tests/suite/html/elem.typ
@@ -0,0 +1,7 @@
+--- html-elem-alone-context html ---
+#context html.elem("html")
+
+--- html-elem-not-alone html ---
+// Error: 2-19 `<html>` element must be the only element in the document
+#html.elem("html")
+Text