@@ -37,7 +37,7 @@ export const closing = omission({
3737 * @type {OmitHandle }
3838 */
3939function headOrColgroupOrCaption ( _ , index , parent ) {
40- var next = siblingAfter ( parent , index , true )
40+ const next = siblingAfter ( parent , index , true )
4141 return ! next || ( ! comment ( next ) && ! whitespaceStart ( next ) )
4242}
4343
@@ -47,7 +47,7 @@ function headOrColgroupOrCaption(_, index, parent) {
4747 * @type {OmitHandle }
4848 */
4949function html ( _ , index , parent ) {
50- var next = siblingAfter ( parent , index )
50+ const next = siblingAfter ( parent , index )
5151 return ! next || ! comment ( next )
5252}
5353
@@ -57,7 +57,7 @@ function html(_, index, parent) {
5757 * @type {OmitHandle }
5858 */
5959function body ( _ , index , parent ) {
60- var next = siblingAfter ( parent , index )
60+ const next = siblingAfter ( parent , index )
6161 return ! next || ! comment ( next )
6262}
6363
@@ -67,7 +67,7 @@ function body(_, index, parent) {
6767 * @type {OmitHandle }
6868 */
6969function p ( _ , index , parent ) {
70- var next = siblingAfter ( parent , index )
70+ const next = siblingAfter ( parent , index )
7171 return next
7272 ? isElement ( next , [
7373 'address' ,
@@ -120,7 +120,7 @@ function p(_, index, parent) {
120120 * @type {OmitHandle }
121121 */
122122function li ( _ , index , parent ) {
123- var next = siblingAfter ( parent , index )
123+ const next = siblingAfter ( parent , index )
124124 return ! next || isElement ( next , 'li' )
125125}
126126
@@ -130,7 +130,7 @@ function li(_, index, parent) {
130130 * @type {OmitHandle }
131131 */
132132function dt ( _ , index , parent ) {
133- var next = siblingAfter ( parent , index )
133+ const next = siblingAfter ( parent , index )
134134 return next && isElement ( next , [ 'dt' , 'dd' ] )
135135}
136136
@@ -140,7 +140,7 @@ function dt(_, index, parent) {
140140 * @type {OmitHandle }
141141 */
142142function dd ( _ , index , parent ) {
143- var next = siblingAfter ( parent , index )
143+ const next = siblingAfter ( parent , index )
144144 return ! next || isElement ( next , [ 'dt' , 'dd' ] )
145145}
146146
@@ -150,7 +150,7 @@ function dd(_, index, parent) {
150150 * @type {OmitHandle }
151151 */
152152function rubyElement ( _ , index , parent ) {
153- var next = siblingAfter ( parent , index )
153+ const next = siblingAfter ( parent , index )
154154 return ! next || isElement ( next , [ 'rp' , 'rt' ] )
155155}
156156
@@ -160,7 +160,7 @@ function rubyElement(_, index, parent) {
160160 * @type {OmitHandle }
161161 */
162162function optgroup ( _ , index , parent ) {
163- var next = siblingAfter ( parent , index )
163+ const next = siblingAfter ( parent , index )
164164 return ! next || isElement ( next , 'optgroup' )
165165}
166166
@@ -170,7 +170,7 @@ function optgroup(_, index, parent) {
170170 * @type {OmitHandle }
171171 */
172172function option ( _ , index , parent ) {
173- var next = siblingAfter ( parent , index )
173+ const next = siblingAfter ( parent , index )
174174 return ! next || isElement ( next , [ 'option' , 'optgroup' ] )
175175}
176176
@@ -180,7 +180,7 @@ function option(_, index, parent) {
180180 * @type {OmitHandle }
181181 */
182182function menuitem ( _ , index , parent ) {
183- var next = siblingAfter ( parent , index )
183+ const next = siblingAfter ( parent , index )
184184 return ! next || isElement ( next , [ 'menuitem' , 'hr' , 'menu' ] )
185185}
186186
@@ -190,7 +190,7 @@ function menuitem(_, index, parent) {
190190 * @type {OmitHandle }
191191 */
192192function thead ( _ , index , parent ) {
193- var next = siblingAfter ( parent , index )
193+ const next = siblingAfter ( parent , index )
194194 return next && isElement ( next , [ 'tbody' , 'tfoot' ] )
195195}
196196
@@ -200,7 +200,7 @@ function thead(_, index, parent) {
200200 * @type {OmitHandle }
201201 */
202202function tbody ( _ , index , parent ) {
203- var next = siblingAfter ( parent , index )
203+ const next = siblingAfter ( parent , index )
204204 return ! next || isElement ( next , [ 'tbody' , 'tfoot' ] )
205205}
206206
@@ -219,7 +219,7 @@ function tfoot(_, index, parent) {
219219 * @type {OmitHandle }
220220 */
221221function tr ( _ , index , parent ) {
222- var next = siblingAfter ( parent , index )
222+ const next = siblingAfter ( parent , index )
223223 return ! next || isElement ( next , 'tr' )
224224}
225225
@@ -229,6 +229,6 @@ function tr(_, index, parent) {
229229 * @type {OmitHandle }
230230 */
231231function cells ( _ , index , parent ) {
232- var next = siblingAfter ( parent , index )
232+ const next = siblingAfter ( parent , index )
233233 return ! next || isElement ( next , [ 'td' , 'th' ] )
234234}
0 commit comments