Tim Down
Tim Down
If I understand you correctly, I think the answer is "not really". You can get the parent element for the selected range easily enough: ``` var sel = rangy.getSelection(); if...
It's not dead. I'm intending to do some work on Rangy but it hasn't been my priority for a good few months. I should have some free time next week;...
_From [[email protected]](https://code.google.com/u/107383371366938520460/) on January 21, 2013 17:01:13_ How bizarre. However, I can't replicate it on Chrome 24 on Windows 7.
_From [[email protected]](https://code.google.com/u/109609144121560897758/) on January 22, 2013 06:15:18_ The issue turns out to be a removeAllRanges() call in one of the tests in the WrappedSelection module. Instead of including Rangy, just...
_From [[email protected]](https://code.google.com/u/107383371366938520460/) on February 23, 2013 15:34:11_ **Status:** NotABug
_From [martin.thurau](https://code.google.com/u/martin.thurau/) on October 22, 2013 08:00:27_ Sorry for digging this up :) Im using rangy in the content script of a Chrome extension and I'm getting complaints from users,...
_From [[email protected]](https://code.google.com/u/109609144121560897758/) on October 22, 2013 08:22:03_ I believe input.blur() and then input.focus() can fix it, but I'm not sure if it's reliable. Putting that code in the load event...
_From [[email protected]](https://code.google.com/u/107383371366938520460/) on October 22, 2013 16:32:51_ Rangy does do some selection-related feature tests every time it starts up and I can see that it's possible it could affect autofocus....
_From [martin.thurau](https://code.google.com/u/martin.thurau/) on October 23, 2013 10:24:36_ The workaround in #5 works fine for me. Thanks :-)
Sadly not. Range behaviour is well-defined and pretty much consistent between browsers; selection behaviour varies significantly, and the behaviour being tested affects how the TextRange module moves the caret when...