: Is it acceptable practice to change the behavior of old HTML tags? In my app I need to display some maps. So I use Leaflet.js to do so, but to simplify my HTML I have used a <map>
In my app I need to display some maps. So I use Leaflet.js to do so, but to simplify my HTML I have used a <map> tag to do so. Is that acceptable, or should I avoid doing this?
More posts by @Michele947
1 Comments
Sorted by latest first Latest Oldest Best
From accessibility this would be incorrect, because <map> tag is:
The map element, in conjunction with any area element descendants, defines an image map.
(source from W3C)
StackOverflow gives a good answer about custom elements.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.