Pergunta

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?

Foi útil?

Solução

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.

Outras dicas

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.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top