vinicius73 / SeoTools

Ferramentas de SEO para Laravel
MIT License
25 stars 8 forks source link

itemprop and name on meta #3

Open rombat opened 9 years ago

rombat commented 9 years ago

Hi, Microdata spec says:

If a meta element has an itemprop attribute, the name, http-equiv, and charset attributes must be omitted, and the content attribute must be present.

Shouldn't one of them be omitted on <meta name='description' itemprop='description' content='Isto é a minha descrição de página' /> ?

Another thing: Shouldn't double quote be used in meta attributes? To avoid attribute being closed if there is a single quote in, for instance, description=" ".

KeitelDOG commented 8 years ago

meta tag content should definitely use double quote. If the description has a single quote, then the meta structured is crashed and become useless, and all words after become empty attributes.

Ex: Cap-Haitien Je t'aime (crashed after t')

<meta name="description" itemprop="description" content="Cap-Haitien Je t" aime="" is="" an="" song="" in="" album="" 10="" ans="" plus="" tard="" performed="" by="" musician="" richie.="" genre:="" konpa,="" '="">