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

[whatwg] Request for new DOM property textarea.selectionText

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Mon, 30 Apr 2012 08:48:15 -0700
Message-ID: <CAAWBYDCQkuKUd7O=mjSE8HXu4cS_do-MoBnrZnhYRnZ-WFktkw@mail.gmail.com>
On Mon, Apr 30, 2012 at 7:35 AM, David Young <dyoung at pobox.com> wrote:
> On Mon, Apr 30, 2012 at 08:55:04AM +0300, Aryeh Gregor wrote:
>> On Sun, Apr 29, 2012 at 11:39 PM, David Young <dyoung at pobox.com> wrote:
>> > I'm curious what advantages document.execCommand() has over the
>> > customary DOM API for adding/deleting/moving nodes?
>>
>> execCommand() does vastly more complicated things than the DOM APIs.
>> See the spec for details:
>>
>> http://dvcs.w3.org/hg/editing/raw-file/tip/editing.html
>
> 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?

Note: that spec isn't *creating* anything like that, it's just
documenting the *existing* execCommand() API that all browsers
implement, but inconsistently and incompatibly.

~TJ
Received on Monday, 30 April 2012 08:48:15 GMT

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