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

reduced implied urls (fixes #117), added tests #119

Merged
merged 2 commits into from
Jul 24, 2018

Conversation

sknebel
Copy link
Member

@sknebel sknebel commented Jul 24, 2018

implied name was tracked in a bool before, I now track the types of properties encountered in a set and check for names and url, prepared for any other implied properties being restricted.

@@ -347,21 +349,18 @@ def parse_props(el):
# if this is not a property element, but it is a h-* microformat,
# add it to our list of children
if not is_property_el and root_class_names:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't this add h to the parsed_type_aggregation?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be covered in Line 258. Since it doesn't matter if it is a child or a nested property, I add it there already. Unless I missed a code path?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

aah yes I missed that change

@@ -199,7 +199,7 @@ def handle_microformat(root_class_names, el, value_property=None,
if x is not None:
properties["photo"] = [x]

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

might be good to add a comment like in the implied name thing

@kartikprabhu kartikprabhu merged commit 14e530a into microformats:master Jul 24, 2018
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