S
S
Sergey Gromov2015-05-04 13:40:19
JavaScript
Sergey Gromov, 2015-05-04 13:40:19

Why is Google swearing at microdata?

Here is a piece of html, the contact page.

<div class="contact_wrap" itemscope itemtype="http://schema.org/Person">
      <span itemprop="name" class="none">reskwer</span>
      <span class="none" itemprop="birthDate">1990-06-23</span>
      <span itemprop="description" class="none">Верстальщик | junior developer</span>
      <span itemprop="jobTitle" class="none">Верстальщик</span>
      <img itemprop="image" src="logo/500x500.png" alt="reskwer" class="none">
      <div itemprop="contactPoints" itemscope itemtype="http://schema.org/ContactPoint">
        <a itemprop="url" href="http://reskwer.ru/"  class="none">Блог reskwer</a>
        <div class="contact_form phone" itemprop="telephone">+3 8050-***-**-**</div>
        <div itemprop="contactType" class="contact_form icq"><span class="none">icq: </span>658-997-430</div>
        <div itemprop="contactType" class="contact_form skype"><span class="none">skype: </span>reskwer</div>
        <div class="contact_form mail" itemprop="email">[email protected]</div>
        <div itemprop="contactType" class="contact_form vk"><span class="none">Вконтакте: </span><a href="http://vk.com/reskwer" target="_blank">vk.com/reskwer</a></div>
        <div itemprop="contactType" class="contact_form ok"><span class="none">Одноклассники: </span><a href="http://ok.ru/reskwer" target="_blank">ok.ru/reskwer</a></div>
        <div itemprop="contactType" class="contact_form twitter"><span class="none">Twitter: </span><a href="https://twitter.com/reskwer" target="_blank">twitter.com/reskwer</a></div>
        <div itemprop="contactType" class="contact_form fb"><span class="none">Facebook: </span><a href="http://fb.com/reskwer" target="_blank">fb.com/reskwer</a></div>
      </div>
    </div>

Yandex handles it without errors, but Google does not understand what, "The ContactPoint record must be associated with the parent object of the declared type."
Google microdata validator: https://developers.google.com/structured-data/test...
Yandex microdata validator: https://webmaster.yandex.ru/microtest.xml

Answer the question

In order to leave comments, you need to log in

3 answer(s)
N
Nick Sdk, 2018-05-15
@newaitix

https://jsfiddle.net/047jkpou/

S
Stalker_RED, 2018-05-15
@Stalker_RED

if (secession_NP.value.includes('Поштомат')) {
  foo = /№(\d+)/.exec(secession_NP.value)[1]
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question