« Return to Thread: Request for new DOM property textarea.selectionText

Re: Request for new DOM property textarea.selectionText

by Ryosuke Niwa-2 :: Rate this Message:

| View in Thread

On Sat, Apr 28, 2012 at 9:30 AM, Ian Hickson <ian@...> 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

 « Return to Thread: Request for new DOM property textarea.selectionText