"when the ctx is in an end tag" at the end of this comment is redundant, so it should be removed to simplify comment.