@@ -130,12 +130,12 @@ test('raw', async function (t) {
130130 assert . deepEqual (
131131 raw (
132132 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.' ) ] ) ,
134134 u ( 'raw' , '<img alt="foo" src="bar.jpg">' )
135135 ] )
136136 ) ,
137137 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.' ) ] ) ,
139139 h ( 'img' , { alt : 'foo' , src : 'bar.jpg' } )
140140 ] )
141141 )
@@ -153,7 +153,7 @@ test('raw', async function (t) {
153153 ] )
154154 ) ,
155155 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.' ) ] ) ,
157157 h ( 'img' , { alt : 'foo' , src : 'bar.jpg' } )
158158 ] )
159159 )
@@ -173,8 +173,8 @@ test('raw', async function (t) {
173173 ] )
174174 ) ,
175175 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' ) ] )
178178 ] )
179179 )
180180 }
@@ -386,7 +386,7 @@ test('raw', async function (t) {
386386 assert . deepEqual (
387387 raw ( u ( 'root' , [ u ( 'raw' , '<script>alert(1)</script>' ) ] ) ) ,
388388 u ( 'root' , { data : { quirksMode : false } } , [
389- h ( 'script' , u ( 'text' , 'alert(1)' ) )
389+ h ( 'script' , [ u ( 'text' , 'alert(1)' ) ] )
390390 ] )
391391 )
392392 }
@@ -398,7 +398,7 @@ test('raw', async function (t) {
398398 assert . deepEqual (
399399 raw ( u ( 'root' , [ h ( 'script' , u ( 'text' , 'alert(1)' ) ) ] ) ) ,
400400 u ( 'root' , { data : { quirksMode : false } } , [
401- h ( 'script' , u ( 'text' , 'alert(1)' ) )
401+ h ( 'script' , [ u ( 'text' , 'alert(1)' ) ] )
402402 ] )
403403 )
404404 }
0 commit comments