[whatwg] Request for new DOM property textarea.selectionText

Ryosuke Niwa rniwa at webkit.org
Sat Apr 28 16:40:41 PDT 2012


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



More information about the whatwg mailing list