Question

In the new era of web components MDN (and probably the standard) suggests extending the HTMLElement class.

For a long time we've strayed away from doing that, what has changed now for this to become the suggested standard?

Is it a particularly good idea in the long-term, what happens if in the future the standard gets extended and implements currently non-existent methods which you happen to define in your extending classes?

Pas de solution correcte

Autres conseils

yes, it's a very good idea if the HtmlElement is extended and modified in a long-term form, such as a class that is made efficient and attractive, it will make web performance in html form better and more developed.

Licencié sous: CC-BY-SA avec attribution
scroll top