Selection.extend is a separate API from Selection.modify. They are both listed by Mozilla at https://developer.mozilla.org/en-US/docs/Web/API/Selection?redirectlocale=en-US&redirectslug=DOM%2FSelection for reference. Thanks for the feedback!
Ben
From: erik@ictenablers.com [mailto:erik@ictenablers.com]
Sent: Wednesday, September 17, 2014 11:06 AM
To: public-webapps@w3.org
Cc: ayg@aryeh.name
Subject: [editing] Suggested selection.extend can not select based on how the text currently displayed
Dear all,
My interpretation of the suggested selection.extend is that it can not select based on how the text is displayed. I'm thinking in particular of the feature to extend to the lineboundary, like this:
var selectionPoint = window.getSelection();
selectionPoint.modify('extend','backward','lineboundary');
Supported by most browsers (not IE) this could be used to for example select or highlight a line of text that the user clicks on.
This feature can have both practical and accessibility uses.
Best regards,
Erik