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?

有帮助吗?

解决方案

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.

其他提示

Couldn't find a solution to this so I had to add back the ID and Name attributes.

It's no longer W3c valid but works in all browsers. Not an ideal solution but works which is more important.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top