@@ -37,7 +37,7 @@ export const closing = omission({
37
37
* @type {OmitHandle }
38
38
*/
39
39
function headOrColgroupOrCaption ( _ , index , parent ) {
40
- var next = siblingAfter ( parent , index , true )
40
+ const next = siblingAfter ( parent , index , true )
41
41
return ! next || ( ! comment ( next ) && ! whitespaceStart ( next ) )
42
42
}
43
43
@@ -47,7 +47,7 @@ function headOrColgroupOrCaption(_, index, parent) {
47
47
* @type {OmitHandle }
48
48
*/
49
49
function html ( _ , index , parent ) {
50
- var next = siblingAfter ( parent , index )
50
+ const next = siblingAfter ( parent , index )
51
51
return ! next || ! comment ( next )
52
52
}
53
53
@@ -57,7 +57,7 @@ function html(_, index, parent) {
57
57
* @type {OmitHandle }
58
58
*/
59
59
function body ( _ , index , parent ) {
60
- var next = siblingAfter ( parent , index )
60
+ const next = siblingAfter ( parent , index )
61
61
return ! next || ! comment ( next )
62
62
}
63
63
@@ -67,7 +67,7 @@ function body(_, index, parent) {
67
67
* @type {OmitHandle }
68
68
*/
69
69
function p ( _ , index , parent ) {
70
- var next = siblingAfter ( parent , index )
70
+ const next = siblingAfter ( parent , index )
71
71
return next
72
72
? isElement ( next , [
73
73
'address' ,
@@ -120,7 +120,7 @@ function p(_, index, parent) {
120
120
* @type {OmitHandle }
121
121
*/
122
122
function li ( _ , index , parent ) {
123
- var next = siblingAfter ( parent , index )
123
+ const next = siblingAfter ( parent , index )
124
124
return ! next || isElement ( next , 'li' )
125
125
}
126
126
@@ -130,7 +130,7 @@ function li(_, index, parent) {
130
130
* @type {OmitHandle }
131
131
*/
132
132
function dt ( _ , index , parent ) {
133
- var next = siblingAfter ( parent , index )
133
+ const next = siblingAfter ( parent , index )
134
134
return next && isElement ( next , [ 'dt' , 'dd' ] )
135
135
}
136
136
@@ -140,7 +140,7 @@ function dt(_, index, parent) {
140
140
* @type {OmitHandle }
141
141
*/
142
142
function dd ( _ , index , parent ) {
143
- var next = siblingAfter ( parent , index )
143
+ const next = siblingAfter ( parent , index )
144
144
return ! next || isElement ( next , [ 'dt' , 'dd' ] )
145
145
}
146
146
@@ -150,7 +150,7 @@ function dd(_, index, parent) {
150
150
* @type {OmitHandle }
151
151
*/
152
152
function rubyElement ( _ , index , parent ) {
153
- var next = siblingAfter ( parent , index )
153
+ const next = siblingAfter ( parent , index )
154
154
return ! next || isElement ( next , [ 'rp' , 'rt' ] )
155
155
}
156
156
@@ -160,7 +160,7 @@ function rubyElement(_, index, parent) {
160
160
* @type {OmitHandle }
161
161
*/
162
162
function optgroup ( _ , index , parent ) {
163
- var next = siblingAfter ( parent , index )
163
+ const next = siblingAfter ( parent , index )
164
164
return ! next || isElement ( next , 'optgroup' )
165
165
}
166
166
@@ -170,7 +170,7 @@ function optgroup(_, index, parent) {
170
170
* @type {OmitHandle }
171
171
*/
172
172
function option ( _ , index , parent ) {
173
- var next = siblingAfter ( parent , index )
173
+ const next = siblingAfter ( parent , index )
174
174
return ! next || isElement ( next , [ 'option' , 'optgroup' ] )
175
175
}
176
176
@@ -180,7 +180,7 @@ function option(_, index, parent) {
180
180
* @type {OmitHandle }
181
181
*/
182
182
function menuitem ( _ , index , parent ) {
183
- var next = siblingAfter ( parent , index )
183
+ const next = siblingAfter ( parent , index )
184
184
return ! next || isElement ( next , [ 'menuitem' , 'hr' , 'menu' ] )
185
185
}
186
186
@@ -190,7 +190,7 @@ function menuitem(_, index, parent) {
190
190
* @type {OmitHandle }
191
191
*/
192
192
function thead ( _ , index , parent ) {
193
- var next = siblingAfter ( parent , index )
193
+ const next = siblingAfter ( parent , index )
194
194
return next && isElement ( next , [ 'tbody' , 'tfoot' ] )
195
195
}
196
196
@@ -200,7 +200,7 @@ function thead(_, index, parent) {
200
200
* @type {OmitHandle }
201
201
*/
202
202
function tbody ( _ , index , parent ) {
203
- var next = siblingAfter ( parent , index )
203
+ const next = siblingAfter ( parent , index )
204
204
return ! next || isElement ( next , [ 'tbody' , 'tfoot' ] )
205
205
}
206
206
@@ -219,7 +219,7 @@ function tfoot(_, index, parent) {
219
219
* @type {OmitHandle }
220
220
*/
221
221
function tr ( _ , index , parent ) {
222
- var next = siblingAfter ( parent , index )
222
+ const next = siblingAfter ( parent , index )
223
223
return ! next || isElement ( next , 'tr' )
224
224
}
225
225
@@ -229,6 +229,6 @@ function tr(_, index, parent) {
229
229
* @type {OmitHandle }
230
230
*/
231
231
function cells ( _ , index , parent ) {
232
- var next = siblingAfter ( parent , index )
232
+ const next = siblingAfter ( parent , index )
233
233
return ! next || isElement ( next , [ 'td' , 'th' ] )
234
234
}
0 commit comments