@pavelgj Does this make sense? This is to handle case when anchor element has some child.