[Bug 24725] Use the microtask queue for MutationObserver

https://www.w3.org/Bugs/Public/show_bug.cgi?id=24725

--- Comment #2 from Philip Jägenstedt <philipj@opera.com> ---
(In reply to Rafael Weinstein from comment #1)
> Mutation Observers won't behave the way you are wanting because they require
> a delivery order which isn't based on the time of the mutation (it's based
> on the time the mutation observers are created).

That sounds like it would work as well, as long as invoking the callbacks isn't
batched together in a single microtask.

> However, ES Promises will work the way you want.
> 
> Once https://codereview.chromium.org/167683003/ lands, ES microtask work
> will be scheduled correctly relative to DOM microtask work and you'll be
> able to verify this with tests.

Cool, what kind of code would one write to have a callback run in a microtask?
(Searched for "promises microtask" without finding anything concrete.)

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Wednesday, 19 February 2014 15:13:12 UTC