|
|
|
@ -1,5 +1,5 @@
|
|
|
|
|
import { namespace_svg } from '../../../../constants.js';
|
|
|
|
|
import { hydrate_anchor, hydrate_start, hydrating, set_hydrate_nodes } from '../hydration.js';
|
|
|
|
|
import { hydrate_anchor, hydrate_start, hydrating } from '../hydration.js';
|
|
|
|
|
import { empty } from '../operations.js';
|
|
|
|
|
import {
|
|
|
|
|
block,
|
|
|
|
@ -102,12 +102,6 @@ export function element(anchor, get_tag, is_svg, render_fn, get_namespace, locat
|
|
|
|
|
? element.firstChild && hydrate_anchor(/** @type {Comment} */ (element.firstChild))
|
|
|
|
|
: element.appendChild(empty());
|
|
|
|
|
|
|
|
|
|
if (hydrating && !element.firstChild) {
|
|
|
|
|
// if the element is a void element with content, add an empty
|
|
|
|
|
// node to avoid breaking assumptions elsewhere
|
|
|
|
|
set_hydrate_nodes([empty()]);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// `child_anchor` is undefined if this is a void element, but we still
|
|
|
|
|
// need to call `render_fn` in order to run actions etc. If the element
|
|
|
|
|
// contains children, it's a user error (which is warned on elsewhere)
|
|
|
|
|