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

[whatwg] Request for new DOM property textarea.selectionText

From: Ian Hickson <ian@hixie.ch>
Date: Sat, 28 Apr 2012 16:30:35 +0000 (UTC)
Message-ID: <Pine.LNX.4.64.1204281629080.19700@ps20323.dreamhostps.com>
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.   `._.-(,_..'--(,_..'`-.;.'
Received on Saturday, 28 April 2012 09:30:35 GMT

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