3

Is there an alternative for HTML5 for google notranslate meta tag. I getting the error below when validating HTML5.

Bad value google for attribute name on element meta: Keyword google is not registered. <meta name="google" content="notranslate" />

adaptive
  • 73
  • 2
  • 8
  • 2
    That looks like a failing of the validator. That tag should pass HTML5 validation right now, but only since 21st August. The validator has clearly not caught up yet. Have you tried putting `class="notranslate"` on the `` tag? – Alohci Oct 11 '12 at 23:50

1 Answers1

8

The keyword google is registered at http://wiki.whatwg.org/wiki/MetaExtensions#Registered_Extensions:

A content of notranslate will tell google not to pop up the translate bar / link if the page is in a foreign language form the user's browser.

<meta name="google" content="notranslate">

So it is valid to use this keyword in HTML5. If a validator reports this as an error, the validator is probably not up to date or simply wrong.

unor
  • 92,415
  • 26
  • 211
  • 360