Uncaught DOMException: Failed to construct 'CustomElement': The result must not have children code example
Example: Uncaught DOMException: Failed to construct 'CustomElement': The result must not have children
The constructor for a custom element is not supposed to read or write its DOM. It shouldn't create child elements, or modify attributes. That work needs to be done later, usually in a connectedCallback() method.....