getSelection

getSelection

[1] Text selection after updating textContent of TEXTAREA · Issue #2411 · whatwg/html () <https://github.com/whatwg/html/issues/2411>