Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

False negative 'parsed name name is longer than the content' #102

Open
rootwork opened this issue Sep 30, 2022 · 2 comments
Open

False negative 'parsed name name is longer than the content' #102

rootwork opened this issue Sep 30, 2022 · 2 comments

Comments

@rootwork
Copy link

Testing this page, with this relevant markup:

<article class="post_content h-entry" id="content">
  <h1 class="post_title" itemprop="name headline">
    <div class="post_featured">[some image markup]</div>
    <span class="post_title__text p-name">Refreshing after a long absence</span>
  </h1>
  [...]
</article>

I get the warning "The parsed name name is longer than the content, which is usually a sign is it malformed due to being implicitly rather than explicitly parsed."

I'm not sure why it's not picking up the p-name in that span -- which I assume is why I'm seeing this warning. (I also searched the source to make sure p-name doesn't appear anywhere else, and it doesn't.)

@gRegorLove
Copy link
Member

Thanks for the report! I think the microformats parser running on this site needs to be updated. We'll try to get that updated soon.

Your HTML looks correct and returns the expected results when I run it through https://php.microformats.io/ for example, so looks all good on your end.

@rootwork
Copy link
Author

Great, thank you @gRegorLove! Appreciate it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants