|
|
@ -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;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|