On Thu, Aug 5, 2010 at 1:59 AM, Maciej Stachowiak <
mjs@apple.com> wrote:
> If mutation events tend to break editing, one simple solution is to turn then off within the scope of editing operations and send a single mutation event at the end. It's not clear if that kind of solution would be appropriate to expose to Web content, though; you can't do the RAII idiom in JavaScript so there could be too much risk of staying stuck in the "mutation events deferred" state. On the other hand, a dynamic-wind-style solution might be appropriate. This is one tiny example of how the same abstractions might not be right internally and externally.
If we don't already have it, we definitely want a RAII for turning off