stowball / jQuery-rwdImageMaps

Responsive Image Maps jQuery Plugin
http://mattstow.com
MIT License
1.56k stars 709 forks source link

W3C Validator says "there is no attribute "name"" #116

Open anrainer opened 6 years ago

anrainer commented 6 years ago

Hi Stowball,

May I suggest to make your script reacting on attribute "id" also? I think it's around line 44.

You made a great script, thanks for sharing!

Andreas

stowball commented 6 years ago

The name attribute is what makes an image map work. The spec says:

The name attribute gives the map a name so that it can be referenced. The attribute must be present and must have a non-empty value with no space characters. The value of the name attribute must not be a compatibility-caseless match for the value of the name attribute of another map element in the same document. If the id attribute is also specified, both attributes must have the same value.