|
|
@ -97,7 +97,7 @@ export function html(node, get_value, svg = false, mathml = false, skip_warning
|
|
|
|
// Don't use create_fragment_with_script_from_html here because that would mean script tags are executed.
|
|
|
|
// Don't use create_fragment_with_script_from_html here because that would mean script tags are executed.
|
|
|
|
// @html is basically `.innerHTML = ...` and that doesn't execute scripts either due to security reasons.
|
|
|
|
// @html is basically `.innerHTML = ...` and that doesn't execute scripts either due to security reasons.
|
|
|
|
/** @type {DocumentFragment | Element} */
|
|
|
|
/** @type {DocumentFragment | Element} */
|
|
|
|
var node = create_fragment_from_html(html);
|
|
|
|
var node = create_fragment_from_html(html, /*untrusted=*/ true);
|
|
|
|
|
|
|
|
|
|
|
|
if (svg || mathml) {
|
|
|
|
if (svg || mathml) {
|
|
|
|
node = /** @type {Element} */ (get_first_child(node));
|
|
|
|
node = /** @type {Element} */ (get_first_child(node));
|
|
|
|