@@ -17,13 +17,14 @@ test('toParse5', () => {
17
17
toParse5 ( {
18
18
type : 'root' ,
19
19
children : [
20
- { type : 'doctype' , name : 'html' } ,
20
+ { type : 'doctype' } ,
21
21
{
22
22
type : 'element' ,
23
23
tagName : 'html' ,
24
+ properties : { } ,
24
25
children : [
25
- { type : 'element' , tagName : 'head' , children : [ ] } ,
26
- { type : 'element' , tagName : 'body' , children : [ ] }
26
+ { type : 'element' , tagName : 'head' , properties : { } , children : [ ] } ,
27
+ { type : 'element' , tagName : 'body' , properties : { } , children : [ ] }
27
28
]
28
29
}
29
30
]
@@ -44,9 +45,10 @@ test('root', () => {
44
45
{
45
46
type : 'element' ,
46
47
tagName : 'html' ,
48
+ properties : { } ,
47
49
children : [
48
- { type : 'element' , tagName : 'head' , children : [ ] } ,
49
- { type : 'element' , tagName : 'body' , children : [ ] }
50
+ { type : 'element' , tagName : 'head' , properties : { } , children : [ ] } ,
51
+ { type : 'element' , tagName : 'body' , properties : { } , children : [ ] }
50
52
]
51
53
}
52
54
]
@@ -61,13 +63,14 @@ test('root', () => {
61
63
toParse5 ( {
62
64
type : 'root' ,
63
65
children : [
64
- { type : 'doctype' , name : 'html' } ,
66
+ { type : 'doctype' } ,
65
67
{
66
68
type : 'element' ,
67
69
tagName : 'html' ,
70
+ properties : { } ,
68
71
children : [
69
- { type : 'element' , tagName : 'head' , children : [ ] } ,
70
- { type : 'element' , tagName : 'body' , children : [ ] }
72
+ { type : 'element' , tagName : 'head' , properties : { } , children : [ ] } ,
73
+ { type : 'element' , tagName : 'body' , properties : { } , children : [ ] }
71
74
]
72
75
}
73
76
]
@@ -84,7 +87,7 @@ test('doctype', () => {
84
87
expected . parentNode = undefined
85
88
86
89
assert . deepEqual (
87
- toParse5 ( { type : 'doctype' , name : 'html' } ) ,
90
+ toParse5 ( { type : 'doctype' } ) ,
88
91
expected ,
89
92
'should transform a doctype (modern)'
90
93
)
@@ -124,6 +127,7 @@ test('element', () => {
124
127
toParse5 ( {
125
128
type : 'element' ,
126
129
tagName : 'h1' ,
130
+ properties : { } ,
127
131
children : [ { type : 'text' , value : 'Alpha' } ]
128
132
} )
129
133
) ,
@@ -267,12 +271,14 @@ test('element', () => {
267
271
{
268
272
type : 'element' ,
269
273
tagName : 'b' ,
274
+ properties : { } ,
270
275
children : [ { type : 'text' , value : 'bold' } ]
271
276
} ,
272
277
{ type : 'text' , value : ' and ' } ,
273
278
{
274
279
type : 'element' ,
275
280
tagName : 'i' ,
281
+ properties : { } ,
276
282
children : [ { type : 'text' , value : 'italic' } ]
277
283
}
278
284
]
@@ -301,6 +307,7 @@ test('position', () => {
301
307
toParse5 ( {
302
308
type : 'element' ,
303
309
tagName : 'h1' ,
310
+ properties : { } ,
304
311
children : [
305
312
{
306
313
type : 'text' ,
0 commit comments