Skip to content
Snippets Groups Projects
Commit 7de730dc authored by Pierre Penninckx's avatar Pierre Penninckx
Browse files

[fix] handle getting attribute on NodeList

parent b4e82be9
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -632,7 +632,10 @@ class Node(GenericNodesUtils):
if self.on_attribute is "root":
in_list = self.parent
elif self.on_attribute is not None:
in_list = getattr(self.parent, self.on_attribute)
if isinstance(self.parent, NodeList):
in_list = getattr(self.parent.parent, self.on_attribute)
else:
in_list = getattr(self.parent, self.on_attribute)
else:
return None
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment