If I have a text element with a strong child element within its text. For example:
<p>abcd<strong>ef</strong>gh</p>
What would be the correct end offset value for a range that ends between g and h?
The range's endContainer
property would be the text node whose content is "gh" and endOffset
property 1.
Further reading: