How good of an idea is extending HTMLElement
https://softwareengineering.stackexchange.com/questions/416516
-
16-03-2021 - |
题
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.