Search code examples
xhtmlimagemaprdfa

Image Maps name attribute with XHTML+RDFa 1.0 doctype


After searching the other questions none have answered the specific issue I have.

We recently made the move to include Google's Rich Snippets to our site which involved a DocType change from XHTML 1.0 to XHTML+RDFa 1.0.

Now the issue is we use image maps on our site and the XHTML+RDFa states the 'name' attribute is invalid and fails validation. Removing the name attribute allows validation but prevents chrome/safari from being able to use the image map.

Any Ideas?


Solution

  • You should be able to use the id attribute in place of the name attribute. Make sure the id values are an exact case-sensitive match. If that doesn't work, then it looks like a webkit bug.