Tidy up
Use `focusNode` instead of `anchorNode`
Use `baseOffset` instead of `focusOffset`
Tidy up
Use anchor instead of focus
Tidy up
Add comment
Tidy up