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

[whatwg] Request for new DOM property textarea.selectionText

From: Ryosuke Niwa <rniwa@webkit.org>
Date: Sat, 28 Apr 2012 16:40:41 -0700
Message-ID: <CABNRm62u5VGcERCU=FwjigvotJwbjLwjQ2gU3BfUQAQR-jSCzg@mail.gmail.com>
On Sat, Apr 28, 2012 at 9:30 AM, Ian Hickson <ian at hixie.ch> wrote:
>
>  > I think reusing execCommand is better than adding new method for
> > input/textarea elements for each new feature request like this one.
>
> If it was a contentEditable feature I'd reluctantly agree (reluctantly
> because execCommand is a terrible API), but I really don't see why
> execCommand() would work on input controls.


Because they're all "editing" features. How do we know someone won't
suggest adding things like input.insertParagraph(), or
input.deleteSelectedText(), etc...

- Ryosuke
Received on Saturday, 28 April 2012 16:40:41 GMT

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