[1] Text selection after updating textContent of TEXTAREA · Issue #2411 · whatwg/html (3/17/2018, 8:54:06 AM) <https://github.com/whatwg/html/issues/2411>
Google search: getSelection