Remove explicit ids, as they are not necessary anymore

This commit is contained in:
Henrik Giesel 2021-01-29 18:07:31 +01:00
parent 5e67e706fb
commit 79dc0ecf86

View File

@ -430,16 +430,6 @@ class EditingArea extends HTMLElement {
this.setAttribute("contenteditable", "");
}
static get observedAttributes(): string[] {
return ['ord'];
}
attributeChangedCallback(name: string, _oldValue: string, newValue: string): void {
switch (name) {
case "ord": this.id = `editor-field-${newValue}`;
}
}
set fieldHTML(content: string) {
this.innerHTML = content;
@ -483,13 +473,6 @@ class EditingContainer extends HTMLDivElement {
return ['ord'];
}
attributeChangedCallback(name: string, _oldValue: string, newValue: string): void {
switch (name) {
case "ord":
this.id = `f${newValue}`;
}
}
get ord(): number {
return Number(this.getAttribute("ord"));
}