Added support to parent classes in anchor tagging