summaryrefslogtreecommitdiff
path: root/tests/suite
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2025-02-25 12:31:15 +0100
committerGitHub <noreply@github.com>2025-02-25 11:31:15 +0000
commit225e845021b9cfb37e6dc719c8bc85ccdc1ff69f (patch)
treee4794294a2a9a7d63bbf887d7796002e23ce6d29 /tests/suite
parent36d83c8c092e7984eaa03dbecc1083f49da13129 (diff)
Fix introspection of HTML root sibling metadata (#5953)
Diffstat (limited to 'tests/suite')
-rw-r--r--tests/suite/html/elem.typ8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/suite/html/elem.typ b/tests/suite/html/elem.typ
index 81ab9457..b416fdf9 100644
--- a/tests/suite/html/elem.typ
+++ b/tests/suite/html/elem.typ
@@ -5,3 +5,11 @@
// Error: 2-19 `<html>` element must be the only element in the document
#html.elem("html")
Text
+
+--- html-elem-metadata html ---
+#html.elem("html", context {
+ let val = query(<l>).first().value
+ test(val, "Hi")
+ val
+})
+#metadata("Hi") <l>