pull/15538/head
Rich Harris 4 months ago
parent f36df5f5b1
commit ab5f15c324

@ -45,8 +45,7 @@ export class Template {
} }
push_element() { push_element() {
const element = /** @type {Element} */ (this.#element); this.#fragment = /** @type {Element} */ (this.#element).children;
this.#fragment = element.children;
this.#stack.push(this.#fragment); this.#stack.push(this.#fragment);
} }
@ -60,7 +59,6 @@ export class Template {
* @param {string | undefined} value * @param {string | undefined} value
*/ */
set_prop(key, value) { set_prop(key, value) {
const element = /** @type {Element} */ (this.#element); /** @type {Element} */ (this.#element).attributes[key] = value;
element.attributes[key] = value;
} }
} }

Loading…
Cancel
Save