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

Implied photo #100

Merged
merged 1 commit into from
Jan 8, 2017
Merged

Implied photo #100

merged 1 commit into from
Jan 8, 2017

Conversation

gRegorLove
Copy link
Member

Added failing tests and fix for #88.

This adds support for parsing the photo from object[data] and also corrects the parsing for nested elements. Previously it wouldn't parse if the nested element had siblings (which may have been correct at the time); now it checks for :only-of-type among the siblings. I commented out the two tests that I believe were incorrect and re-wrote them.

Initially I wrote this as part of the try...catch code that existed already. I found I was repeating basically the same code for each parse attempt, so figured I would make it a separate method that loops through the xpaths. I hope that's not too bold of me. I can put it back in the try...catch if desired.

@gRegorLove
Copy link
Member Author

@aaronpk @dissolve @barnabywalters and anyone else: if you have time would you mind reviewing this PR? I'd like to get this set of three PRs merged so I can work on further improvements. This is the third of the three.

@aaronpk
Copy link
Member

aaronpk commented Jan 5, 2017

This one looks good to me!

@aaronpk aaronpk merged commit 93b3a6f into microformats:master Jan 8, 2017
@gRegorLove gRegorLove deleted the issue88 branch January 8, 2017 06:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants