summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorSharzy <me@sharzy.in>2025-02-25 00:35:13 +0800
committerLaurenz <laurmaedje@gmail.com>2025-02-25 15:28:14 +0100
commit4893eb501ecb6d27606460cbb0962742378c394d (patch)
tree59f75c9b7c64f88fd02e2ffa130038c64e7e145a /tests
parent20d4f8135abe580f99d5061680ba606d1b68f5e0 (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