[whatwg] Request for new DOM property textarea.selectionText

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 UTC