[whatwg] Request for new DOM property textarea.selectionText

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 UTC