File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
packages/svelte/src/internal/client/dom Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -31,12 +31,8 @@ export function set_hydrate_nodes(start) {
31
31
* @returns {Node }
32
32
*/
33
33
export function hydrate_anchor ( node ) {
34
- if ( node . nodeType !== 8 ) {
35
- return node ;
36
- }
37
-
38
34
// TODO this could have false positives, if a user comment consisted of `[`. need to tighten that up
39
- if ( /** @type {Comment } */ ( node ) . data !== HYDRATION_START ) {
35
+ if ( node . nodeType !== 8 || /** @type {Comment } */ ( node ) . data !== HYDRATION_START ) {
40
36
return node ;
41
37
}
42
38
@@ -62,7 +58,7 @@ export function hydrate_anchor(node) {
62
58
}
63
59
}
64
60
65
- current = current . nextSibling ;
61
+ current = /** @type { import('#client').TemplateNode } */ ( current . nextSibling ) ;
66
62
}
67
63
68
64
let location ;
You can’t perform that action at this time.
0 commit comments