Test case:
!doctype html
p id=testAbcdefghi
script
var selection = getSelection();
var p = document.getElementById(test).firstChild;
var range = document.createRange();
range.setStart(p, 0);
range.setEnd(p, 1);
selection.removeAllRanges();
selection.addRange(range);
var range =
On 1/28/11 10:59 AM, Aryeh Gregor wrote:
1) Are there real-world use-cases for multiple Ranges per Selection,
or was it just an attempt to be as general as possible?
In Gecko you can select table cells in a table. For example, load this
document:
data:text/html,tabletrtd1td2trtd3td4
On Fri, Jan 28, 2011 at 7:59 AM, Aryeh Gregor
simetrical+...@gmail.comsimetrical%2b...@gmail.com
wrote:
2) Have WebKit or Opera run into any websites that depend on being
able to use multiple Ranges per Selection?
As far as I know, there is no bug filed against this, which seems to imply
On 28 January 2011 16:53, Ryosuke Niwa rn...@webkit.org wrote:
On Fri, Jan 28, 2011 at 7:59 AM, Aryeh Gregor
simetrical+...@gmail.comsimetrical%2b...@gmail.com
wrote:
2) Have WebKit or Opera run into any websites that depend on being
able to use multiple Ranges per Selection?
As far as I
On Fri, Jan 28, 2011 at 9:05 AM, Tim Down timd...@gmail.com wrote:
Not anytime soon as far as I'm concerned. We do have a comment in the
code
indicating there had been a plan, but I don't think anyone is actively
working on it. Because we haven't had much complaints from users and
On Fri, Jan 28, 2011 at 10:59 AM, Aryeh Gregor
simetrical+...@gmail.comsimetrical%2b...@gmail.com
wrote:
1) Are there real-world use-cases for multiple Ranges per Selection,
or was it just an attempt to be as general as possible?
2) Have WebKit or Opera run into any websites that depend on