[whatwg] Request for new DOM property textarea.selectionText

Ian Hickson ian at hixie.ch
Fri Apr 27 21:36:35 PDT 2012


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.   `._.-(,_..'--(,_..'`-.;.'



More information about the whatwg mailing list