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 04:36:35 +0000 (UTC)
Message-ID: <Pine.LNX.4.64.1204280435480.19700@ps20323.dreamhostps.com>
On Fri, 27 Apr 2012, Ryosuke Niwa wrote:
>
> Why are we adding this new API? WebKit already supports
> 
> document.execCommand('InsertText', false, "new selected text");

That's for contenteditable regions, right?

The new API is for <input> and <textarea>. Also, it's not limited to 
replacing the selected text, it can be any region.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Friday, 27 April 2012 21:36:35 GMT

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