W3C home > Mailing lists > Public > whatwg@whatwg.org > April 2012

[whatwg] Request for new DOM property textarea.selectionText

From: David Young <dyoung@pobox.com>
Date: Sun, 29 Apr 2012 15:41:46 -0500
Message-ID: <20120429204146.GV20070@pixotech.com>
On Sun, Apr 29, 2012 at 10:38:26AM +0300, Aryeh Gregor wrote:
> On Sun, Apr 29, 2012 at 10:29 AM, Ryosuke Niwa <rniwa at webkit.org> wrote:
> > That sounds like a tangential issue. We can easily extend execCommand to
> > support arbitrary range(s) since such a feature is also valuable in richly
> > editable areas.
> 
> Ranges don't exist in plaintext areas.  How would you get a Range
> object that selects text in a textarea?  That's why we have separate
> .selectionStart, .selectionEnd, etc. properties to start with.

When you say that ranges do not exist in plaintext areas (not quite sure
what plaintext means in this context), is that for some reason, or is it
just a historical artifact?

Dave

-- 
David Young
dyoung at pobox.com    Urbana, IL    (217) 721-9981
Received on Sunday, 29 April 2012 13:41:46 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 30 January 2013 18:48:07 GMT