You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
rangy.getSelection().getRangeAt(0).getNodes([1]) returns empty for a selected text, when this text is a one unique word surrounded by tag.
Test: double click on "oneword" to select the text, and then press the button. it shows that getNodes returns an empty array (this looks like a bug of rangy). note: you can see that rangy created the span tag and it is not yellow. select the "two words" or a part of it, and click test, and you will see that getNodes returns a non-empty array (as expected). remember to reload the page when testing, as rangy is adding spans.
rangy.getSelection().getRangeAt(0).getNodes([1])
returns empty for a selected text, when this text is a one unique word surrounded by tag.Test: double click on "oneword" to select the text, and then press the button. it shows that getNodes returns an empty array (this looks like a bug of rangy). note: you can see that rangy created the span tag and it is not yellow. select the "two words" or a part of it, and click test, and you will see that getNodes returns a non-empty array (as expected). remember to reload the page when testing, as rangy is adding spans.
Issue from:
https://stackoverflow.com/questions/49156179/rangy-getselection-getrangeat0-getnodes1-returns-empty
The text was updated successfully, but these errors were encountered: