@@ -130,12 +130,12 @@ test('raw', async function (t) {
130
130
assert . deepEqual (
131
131
raw (
132
132
u ( 'root' , [
133
- h ( 'textarea' , u ( 'text' , 'Some text that is <i>not</i> HTML.' ) ) ,
133
+ h ( 'textarea' , [ u ( 'text' , 'Some text that is <i>not</i> HTML.' ) ] ) ,
134
134
u ( 'raw' , '<img alt="foo" src="bar.jpg">' )
135
135
] )
136
136
) ,
137
137
u ( 'root' , { data : { quirksMode : false } } , [
138
- h ( 'textarea' , u ( 'text' , 'Some text that is <i>not</i> HTML.' ) ) ,
138
+ h ( 'textarea' , [ u ( 'text' , 'Some text that is <i>not</i> HTML.' ) ] ) ,
139
139
h ( 'img' , { alt : 'foo' , src : 'bar.jpg' } )
140
140
] )
141
141
)
@@ -153,7 +153,7 @@ test('raw', async function (t) {
153
153
] )
154
154
) ,
155
155
u ( 'root' , { data : { quirksMode : false } } , [
156
- h ( 'textarea' , u ( 'text' , 'Some text that is <i>not</i> HTML.' ) ) ,
156
+ h ( 'textarea' , [ u ( 'text' , 'Some text that is <i>not</i> HTML.' ) ] ) ,
157
157
h ( 'img' , { alt : 'foo' , src : 'bar.jpg' } )
158
158
] )
159
159
)
@@ -173,8 +173,8 @@ test('raw', async function (t) {
173
173
] )
174
174
) ,
175
175
u ( 'root' , { data : { quirksMode : false } } , [
176
- h ( 'textarea' , u ( 'text' , 'Some text that is <i>not</i> HTML.' ) ) ,
177
- h ( 'p' , u ( 'text' , 'but this is' ) )
176
+ h ( 'textarea' , [ u ( 'text' , 'Some text that is <i>not</i> HTML.' ) ] ) ,
177
+ h ( 'p' , [ u ( 'text' , 'but this is' ) ] )
178
178
] )
179
179
)
180
180
}
@@ -386,7 +386,7 @@ test('raw', async function (t) {
386
386
assert . deepEqual (
387
387
raw ( u ( 'root' , [ u ( 'raw' , '<script>alert(1)</script>' ) ] ) ) ,
388
388
u ( 'root' , { data : { quirksMode : false } } , [
389
- h ( 'script' , u ( 'text' , 'alert(1)' ) )
389
+ h ( 'script' , [ u ( 'text' , 'alert(1)' ) ] )
390
390
] )
391
391
)
392
392
}
@@ -398,7 +398,7 @@ test('raw', async function (t) {
398
398
assert . deepEqual (
399
399
raw ( u ( 'root' , [ h ( 'script' , u ( 'text' , 'alert(1)' ) ) ] ) ) ,
400
400
u ( 'root' , { data : { quirksMode : false } } , [
401
- h ( 'script' , u ( 'text' , 'alert(1)' ) )
401
+ h ( 'script' , [ u ( 'text' , 'alert(1)' ) ] )
402
402
] )
403
403
)
404
404
}
0 commit comments