do not remove "for" for accessibility and reusability purposes

This commit is contained in:
buzz-lightsnack-2007 2024-04-23 21:54:53 +08:00
parent d52847635f
commit 1a011d2a65
2 changed files with 3 additions and 5 deletions

View file

@ -149,8 +149,6 @@ export default class windowman {
} else {
text_element.innerText = text_inserted;
}
text_element.removeAttribute(`for`);
});
delete text_elements[`content`];