chore(tagging compiler): Remove the second DomCursor
chore(tagging compiler): Refactor the codes