[whatwg] Request for new DOM property textarea.selectionText

Ian Hickson ian at hixie.ch
Sat Apr 28 09:30:35 PDT 2012

On Fri, 27 Apr 2012, Ryosuke Niwa wrote:
> All editing commands work inside input/textarea on WebKit although some 
> of them have no effect (e.g. bold, italic, etc...)

That sounds rather odd...

> 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.

Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'

More information about the whatwg mailing list