[whatwg] Request for new DOM property textarea.selectionText

Aryeh Gregor ayg at aryeh.name
Mon Apr 30 22:41:45 PDT 2012

On Mon, Apr 30, 2012 at 5:35 PM, David Young <dyoung at pobox.com> wrote:
> I have seen this spec before.  It seems to have something to do
> with creating a word processor-like environment in the browser,
> something that I am acutely interested in, but there isn't much
> introduction/justification to it.  Is there an executive summary of the
> editing API somewhere?

I filed a bug to remind me to add a better intro at some point, but no
guarantees that I'll get to it in the foreseeable future:

You can read tutorials and such that you can find by Googling
"contenteditable" or "execCommand".  This page looks especially good,
at a glance, like most things written by Mark Pilgrim:


On Tue, May 1, 2012 at 1:03 AM, Ojan Vafai <ojan at chromium.org> wrote:
> This looks good to me. Could we just call the method setText though since
> the range values are optional. setRangeText, in retrospect, is wordy and
> confusing in a way that setText isn't IMO.

.setText("foo") sounds like it should set the entire text, not just
the selected text.

More information about the whatwg mailing list