문제

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?

올바른 솔루션이 없습니다

다른 팁

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 softwareengineering.stackexchange
scroll top