2

How to enable tag name twitter:domain for twitter cards in w3c validator?

<meta name="twitter:domain" content="...." >
Marcogomesr
  • 2,614
  • 3
  • 30
  • 41
  • I think you want "property" instead of "name" here, see http://help.simplytestable.com/errors/html-validation/bad-value-w-for-attribute-x-on-element-y-z/bad-value-twitterurl-for-attribute-name-on-element-meta-keyword-twitterurl-is-not-registered/ – cboettig Aug 04 '14 at 22:22

1 Answers1

3

If you are using HTML5, you may only use values listed in the specification and in the WHATWG wiki page "MetaExtensions" (see also this answer).

As twitter:domain is registered in the wiki, it’s valid to use it.

So the validator is not up to date.

Community
  • 1
  • 1
unor
  • 92,415
  • 26
  • 211
  • 360
  • yes but ... I always recibe "Bad value twitter:domain for attribute name on element meta: Keyword twitter:domain is not registered." – Marcogomesr Aug 12 '13 at 04:22
  • @marcogomes: Yes, that’s what I explained: the validator is wrong. – unor Aug 12 '13 at 12:58
  • I fix that change name=".." to property"..." run ok in https://dev.twitter.com/docs/cards/validation/validator – Marcogomesr Aug 30 '13 at 19:51
  • @marcogomes: By using `property` you are using [RDFa](http://en.wikipedia.org/wiki/RDFa) now. That’s a possibility, of course, but as I explained, it would be totally fine to use the `twitter:domain` with plain HTML (by using `name`), too. – unor Aug 30 '13 at 22:33