Using [smaller_example2.html](https://bugzilla.mozilla.org/attachment.cgi?id=9139111), the console shows that the Selection's focusNode is wrong: ``` Selection { anchorNode: #text, anchorOffset: 0, focusNode: #text, focusOffset: 4 ``` ``` document.getSelection().anchorNode.textContent "asdf" document.getSelection().focusNode.textContent " xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx " ```
Bug 1625057 Comment 6 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
Using [smaller_example2.html](https://bugzilla.mozilla.org/attachment.cgi?id=9139111), the console shows that the Selection's focusNode is wrong: ``` Selection { anchorNode: #text, anchorOffset: 0, focusNode: #text, focusOffset: 4 ``` ``` document.getSelection().anchorNode.textContent "asdf" document.getSelection().focusNode.textContent " xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx "
Using [smaller_example2.html](https://bugzilla.mozilla.org/attachment.cgi?id=9139111), the console shows that the Selection's focusNode is wrong: ``` Selection { anchorNode: #text, anchorOffset: 0, focusNode: #text, focusOffset: 4 ``` ``` document.getSelection().anchorNode.textContent "asdf" document.getSelection().focusNode.textContent " xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx " ``` Edit: the focusOffset is wrong too (can be checked by changing `asdf` to `asdfasdf`; the focusOffset will stay 4).