Skip to content

Commit b605cd5

Browse files
author
William Chen
committed
AAA algorithm should only pop when the current node is not in the list of active formatting elements.
1 parent 2b1467e commit b605cd5

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

tree-construction/adoption02.dat

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,3 +61,39 @@
6161
| <b>
6262
| "first"
6363
| "second"
64+
65+
#data
66+
<code foo="bar"><code><code><code><code></code></code></code></code>text</code>
67+
#errors
68+
16: Start tag seen without seeing a doctype first. Expected "<!DOCTYPE html>".
69+
#document
70+
| <html>
71+
| <head>
72+
| <body>
73+
| <code>
74+
| foo="bar"
75+
| <code>
76+
| <code>
77+
| <code>
78+
| <code>
79+
| "text"
80+
81+
#data
82+
<code foo="bar"><code><code><code><div><code></div></code></code></code></code>text</code>
83+
#errors
84+
16: Start tag seen without seeing a doctype first. Expected "<!DOCTYPE html>".
85+
51: End tag "div" seen, but there were open elements.
86+
45: Unclosed element "code".
87+
58: No "code" element in scope but a "code" end tag seen.
88+
#document
89+
| <html>
90+
| <head>
91+
| <body>
92+
| <code>
93+
| foo="bar"
94+
| <code>
95+
| <code>
96+
| <code>
97+
| <div>
98+
| <code>
99+
| "text"

0 commit comments

Comments
 (0)