W3C home > Mailing lists > Public > public-webapps@w3.org > January to March 2015

Re: [Selection] Should selection.getRangeAt return a clone or a reference?

From: Tim Down <tim@timdown.co.uk>
Date: Wed, 7 Jan 2015 00:02:41 +0000
Message-ID: <CAOYSAj3uTEhcXNE1S80S5vwHoL=Ro+h90sB-LDd1sBU2UY2Mbg@mail.gmail.com>
To: Ryosuke Niwa <rniwa@apple.com>
Cc: Webapps WG <public-webapps@w3.org>
For what it's worth as a user of the range and selection APIs, updating a
live range is convenient and preferable, but since this has never worked in
all browsers, I never do it and have never recommended it to anyone else.
Therefore if Gecko changes, nothing really changes for me, so I don't care.
Knock yourself out, Mozilla.


On 6 January 2015 at 22:32, Ryosuke Niwa <rniwa@apple.com> wrote:

> https://github.com/w3c/selection-api/issues/40
> Trident (since IE10) and Gecko both return a live Range, which can be
> modified to update selection.  WebKit and Blink both return a clone Range
> so that any changes to the Range doesn't update the selection.
> It appears that there is a moderate interest at Mozilla to change Gecko's
> behavior.  Does anyone have a strong opinion about this?
> - R. Niwa
Received on Wednesday, 7 January 2015 00:03:09 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 18:14:43 UTC