From 9909fc4580855a58a10eb84f0d143d1b3b3f464a Mon Sep 17 00:00:00 2001
From: Markus Unterwaditzer <markus-honeypot@unterwaditzer.net>
Date: Wed, 24 Nov 2021 20:44:08 +0100
Subject: hello world

---
 .../tree-construction/scripted/adoption01.dat      | 16 ++++++++++++
 .../tree-construction/scripted/ark.dat             | 27 +++++++++++++++++++
 .../tree-construction/scripted/webkit01.dat        | 30 ++++++++++++++++++++++
 3 files changed, 73 insertions(+)
 create mode 100644 tests/html5lib-tests/tree-construction/scripted/adoption01.dat
 create mode 100644 tests/html5lib-tests/tree-construction/scripted/ark.dat
 create mode 100644 tests/html5lib-tests/tree-construction/scripted/webkit01.dat

(limited to 'tests/html5lib-tests/tree-construction/scripted')

diff --git a/tests/html5lib-tests/tree-construction/scripted/adoption01.dat b/tests/html5lib-tests/tree-construction/scripted/adoption01.dat
new file mode 100644
index 0000000..5cc0f07
--- /dev/null
+++ b/tests/html5lib-tests/tree-construction/scripted/adoption01.dat
@@ -0,0 +1,16 @@
+#data
+<p><b id="A"><script>document.getElementById("A").id = "B"</script></p>TEXT</b>
+#errors
+#script-on
+#document
+| <html>
+|   <head>
+|   <body>
+|     <p>
+|       <b>
+|         id="B"
+|         <script>
+|           "document.getElementById("A").id = "B""
+|     <b>
+|       id="A"
+|       "TEXT"
diff --git a/tests/html5lib-tests/tree-construction/scripted/ark.dat b/tests/html5lib-tests/tree-construction/scripted/ark.dat
new file mode 100644
index 0000000..feebead
--- /dev/null
+++ b/tests/html5lib-tests/tree-construction/scripted/ark.dat
@@ -0,0 +1,27 @@
+#data
+<p><font size=4><font size=4><font size=4><script>document.getElementsByTagName("font")[2].setAttribute("size", "5");</script><font size=4><p>X
+#errors
+#script-on
+#document
+| <html>
+|   <head>
+|   <body>
+|     <p>
+|       <font>
+|         size="4"
+|         <font>
+|           size="4"
+|           <font>
+|             size="5"
+|             <script>
+|               "document.getElementsByTagName("font")[2].setAttribute("size", "5");"
+|             <font>
+|               size="4"
+|     <p>
+|       <font>
+|         size="4"
+|         <font>
+|           size="4"
+|           <font>
+|             size="4"
+|             "X"
diff --git a/tests/html5lib-tests/tree-construction/scripted/webkit01.dat b/tests/html5lib-tests/tree-construction/scripted/webkit01.dat
new file mode 100644
index 0000000..3e71c1b
--- /dev/null
+++ b/tests/html5lib-tests/tree-construction/scripted/webkit01.dat
@@ -0,0 +1,30 @@
+#data
+1<script>document.write("2")</script>3
+#errors
+#script-on
+#document
+| <html>
+|   <head>
+|   <body>
+|     "1"
+|     <script>
+|       "document.write("2")"
+|     "23"
+
+#data
+1<script>document.write("<script>document.write('2')</scr"+ "ipt><script>document.write('3')</scr" + "ipt>")</script>4
+#errors
+#script-on
+#document
+| <html>
+|   <head>
+|   <body>
+|     "1"
+|     <script>
+|       "document.write("<script>document.write('2')</scr"+ "ipt><script>document.write('3')</scr" + "ipt>")"
+|     <script>
+|       "document.write('2')"
+|     "2"
+|     <script>
+|       "document.write('3')"
+|     "34"
-- 
cgit v1.2.3