Fix bug: when `commonAncestorNode` is element, `commonAncestorElement` is `undefined`, it should be `commonAncestorNode`
Fix bug: when `commonAncestorNode` is element, `commonAncestorElement` is `undefined`, it should be `commonAncestorNode`

LeaveNote/LeaveNote