-
Notifications
You must be signed in to change notification settings - Fork 25
Properly handle nested objects #31
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
Comments
i believe this is related to this section from microformats wiki: http://microformats.org/wiki/microformats-2 Quote:
which appears not yet implemented. |
Any updates? I just had to do an ugly workaround for this, dropping down to use the to_hash version of the parsed data: aaronpk/webmention.io@d2cc836#diff-411ca3c70351e774091d525fab8264b9R330 |
Not as of yet, unfortunately On Sat, Dec 13, 2014 at 9:29 AM, Aaron Parecki [email protected]
Michael Mitchell [image: G5 Website] http://www.getg5.com/ DIGITAL EXPERIENCE MANAGEMENT FOLLOW US http://www.getg5.com/ https://plus.google.com/u/0/101198449642176712699/about http://www.linkedin.com/company/getg5 https://twitter.com/G5Platform https://www.facebook.com/GetG5 This email may contain information that is privileged, confidential, or |
I tried to parse http://tantek.com/ and it crashed the parser on something like this: <div class="h-entry">
<p class="u-comment h-cite">
test .
</p>
</div> with:
It would be nice if the parser at least wouldn't crash. |
@jeena It seems like the parser is pretty much abandoned by the G5 folks. We got paid to build it (when I was still there) as a part of a larger product. But if it does as much as G5 needs and they're otherwise too busy, it's not likely to get the attention it deserves. If you're able and willing to submit a pull request with a patch, I could apply it for you. Unfortunately, (like too many open source projects) this doesn't really have a maintainer anymore. 😕 |
Oh ok, that's sad, but understandable. Perhaps one could write that somewhere into the README so people know and perhaps someone will be able to take it over. I'm not sure I will be able to fix something like this but if then I will make a pull request. |
It seems the parser is not handling nested objects properly.
For example, this URL: http://aaronparecki.com/notes/2014/07/04/2/indiewebcamp-latergram
It appears the comment authors and comment URLs all show up under the main h-entry when in reality they should be under children of the main h-entry as their own h-cite objects.
Compare the result of the PHP parser
The text was updated successfully, but these errors were encountered: