- From: Ben Peters <Ben.Peters@microsoft.com>
- Date: Tue, 5 Aug 2014 22:51:01 +0000
- To: Ryosuke Niwa <rniwa@apple.com>, "public-webapps@w3.org" <public-webapps@w3.org>
- Message-ID: <cc109f4ca7794774942f175505a31d64@BLUPR03MB437.namprd03.prod.outlook.com>
I have added proposed text to this bug. Any objections to this? Proposed text, based on the text for collapse(): void setBaseAndExtent (Node baseNode, unsigned long baseOffset, Node extentNode, unsigned long extentOffset); The method must throw an IndexSizeError exception if offset is negative or longer than node's length ([DOM4]). Otherwise, it must create a new range, set ([DOM4]) its start to (baseNode, baseOffset) and its and end to (extentNode, extentOffset), and set the context object's range to the newly-created range. From: Ben Peters Sent: Tuesday, May 20, 2014 11:37 AM To: Ben Peters; Ryosuke Niwa; public-webapps@w3.org Subject: RE: [selection] Selection.setBaseAndExtent I have filed a bug to track this issue [1]. Ben [1] https://www.w3.org/Bugs/Public/show_bug.cgi?id=25831 From: Ben Peters [mailto:Ben.Peters@microsoft.com] Sent: Monday, May 5, 2014 11:28 PM To: Ryosuke Niwa; public-webapps@w3.org<mailto:public-webapps@w3.org> Subject: [selection] Selection.setBaseAndExtent I noticed that some websites use selection.setBaseAndExtent [1]. According to what limited documentation I could find, it works similar to selection.extend. Is there any intention to standardize this, or is it made obsolete by selection.extend? Ben [1] http://stackoverflow.com/questions/985272/jquery-selecting-text-in-an-element-akin-to-highlighting-with-your-mouse
Received on Tuesday, 5 August 2014 22:51:31 UTC