@@ -796,7 +796,7 @@ export function claim_html_tag(nodes, is_svg) {
796
796
const start_index = find_comment ( nodes , 'HTML_TAG_START' , 0 ) ;
797
797
const end_index = find_comment ( nodes , 'HTML_TAG_END' , start_index ) ;
798
798
if ( start_index === end_index ) {
799
- return new HtmlTagHydration ( undefined , is_svg ) ;
799
+ return new HtmlTagHydration ( is_svg ) ;
800
800
}
801
801
init_claim_info ( nodes ) ;
802
802
const html_tag_nodes = nodes . splice ( start_index , end_index - start_index + 1 ) ;
@@ -807,7 +807,7 @@ export function claim_html_tag(nodes, is_svg) {
807
807
n . claim_order = nodes . claim_info . total_claimed ;
808
808
nodes . claim_info . total_claimed += 1 ;
809
809
}
810
- return new HtmlTagHydration ( claimed_nodes , is_svg ) ;
810
+ return new HtmlTagHydration ( is_svg , claimed_nodes ) ;
811
811
}
812
812
813
813
/**
@@ -1134,13 +1134,11 @@ export class HtmlTag {
1134
1134
}
1135
1135
}
1136
1136
1137
- /**
1138
- * @extends HtmlTag */
1139
1137
export class HtmlTagHydration extends HtmlTag {
1140
- // hydration claimed nodes
1141
- /** */
1138
+ /** @type {Element[] } hydration claimed nodes */
1142
1139
l = undefined ;
1143
- constructor ( claimed_nodes , is_svg = false ) {
1140
+
1141
+ constructor ( is_svg = false , claimed_nodes ) {
1144
1142
super ( is_svg ) ;
1145
1143
this . e = this . n = null ;
1146
1144
this . l = claimed_nodes ;
0 commit comments