MutationObserver support

40 views
Skip to first unread message

Orly K.

unread,
Oct 10, 2014, 12:17:17 PM10/10/14
to js...@googlegroups.com
Context of the question is development of a tool which can sync dom in nodejs memory context (spawned by jsdom) with browser dom, so here arise a need for fastest and transparent way to track bulk dom changes..

Current version of jsdom supports MutationEvents, but not MutationObservers

MutationEvents are well known for their slow performance at browsers, but how does it apply to jsdom performance - there no render pipeline and so on, so can one assume it's relatively fast?

It would be not hard to add a simple implementation of MutationObservers via some kind of event storage/conversion/access object, but does it have sense?

So question is basically is - why MutationObservers are't supported in jsdom, is it because MutationEvents are suffucient enough in terms of performance? Or it's planned to add support for it later?


Reply all
Reply to author
Forward
0 new messages