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

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

From: Ryosuke Niwa <rniwa@apple.com>
Date: Tue, 06 Jan 2015 14:32:16 -0800
Message-id: <FE2081E1-4FFF-417C-82F9-367FBCC1E0CD@apple.com>
To: Webapps WG <public-webapps@w3.org>

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 Tuesday, 6 January 2015 22:32:48 UTC

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