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

[whatwg] Undo Manager specs is confusing in the contenteditable section

From: Rakesh Chaitanya KN <kgdn63@motorola.com>
Date: Thu, 14 Jun 2012 14:53:09 +0530
Message-ID: <CAJB9WNv2YuVbEfk_K29cLxqZT3GXkT0m4wk-d690b_Bpo9h3pg@mail.gmail.com>
To: whatwg@whatwg.org

The specs for undo
is at its early stages is a bit confusing at following locations:

*2.2.1 Undo scope and contenteditable*
*When the contenteditable content attribute is added to an element, the
user agent must remove all entries in the undo transaction histories
of the editable
undo scope hosts that are descendent of the element and have become
editable without unapplying or reapplying the entries and disconnect the
corresponding UndoManagers as if the undoscope content attribute was
removed from all descendent nodes excluding undo scope hosts and their

What does "editable undo hosts" imply here?

Also when contenteditable is added to an element all
the descendant elements become editable, so none of the descendants should
be a undo scope host as "undoscope content attribute on an editable element
is ignored". So is "*excluding undo scope hosts and their descendents*"

Maybe there are some use cases I am not aware of but two statements seem

Received on Thursday, 14 June 2012 09:23:46 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:43 UTC