Mobile app version of vmapp.org
Login or Join
Michele947

: 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>

@Michele947

Posted in: #Html #Javascript #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> tag to do so. Is that acceptable, or should I avoid doing this?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Michele947

1 Comments

Sorted by latest first Latest Oldest Best

 

@Odierno851

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.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme