[whatwg] Undoscopes inside an editable region should ignored

Anne van Kesteren annevk at opera.com
Thu Oct 13 19:42:01 PDT 2011

On Fri, 14 Oct 2011 11:27:21 +0900, Ojan Vafai <ojan at chromium.org> wrote:
> I guess I'd be fine with saying that the undomanager is created at the  
> time the undoscope property is set, but I'm not sure what we can do  
> about the
> non-editable --> editable case.

So that case is when you have

   <div id=a>
     <div undoscope id=b>

and then set contentEditable to true on #a right? Maybe it should be able  
for UndoManager objects to become "detached"? And if the "detached flag"  
is set any member will throw an "InvalidStateError"?

The next time you would get the undoManager attribute of #b it would  
simply return the one for #a.

Anne van Kesteren

More information about the whatwg mailing list