diff --git a/mf2py/parser.py b/mf2py/parser.py index f099c69..ce9fb52 100644 --- a/mf2py/parser.py +++ b/mf2py/parser.py @@ -241,8 +241,10 @@ def handle_microformat( # if some properties not already found find in implied ways unless in backcompat mode if not backcompat_mode: # stop implied name if any p-*, e-*, h-* is already found - if "name" not in properties and parsed_types_aggregation.isdisjoint( - "peh" + if ( + "name" not in properties + and parsed_types_aggregation.isdisjoint("peh") + and "h-geo" not in el.attrs["class"] # skip nested backcompat geo ): properties["name"] = [ implied_properties.name(el, self.__url__, self.filtered_roots) diff --git a/test/examples/implied_properties/implied_nested_backcompat.html b/test/examples/implied_properties/implied_nested_backcompat.html new file mode 100644 index 0000000..83be50d --- /dev/null +++ b/test/examples/implied_properties/implied_nested_backcompat.html @@ -0,0 +1,4 @@ +