Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unable to use Polymer's dom mutation observer polyfill with mutation summary library #490

Closed
veryhim opened this issue May 5, 2014 · 4 comments

Comments

@veryhim
Copy link

veryhim commented May 5, 2014

Functionality - replicate entire page using DOM mutation observer. This works well in chrome/ FF. For IE9, I am trying to use dom mutation observer polyfill of Polymer framework to make mutation_summary.js, tree_mirror.js work. Mutation_summary expects a MutationObserver implementation from browser/ polyfill but it remains undefined when tree_mirror tries to initialize dom.

Question: Is it possible to use the mutation observer polyfill independently w/o setting up Polymer first or w/o specifying polymer's HTML elements in the webpage. And, can it work with mutation_summary and tree_mirror implementations.

@arv
Copy link
Contributor

arv commented May 6, 2014

The https://github.com/Polymer/MutationObservers polyfill works stand alone. There are tests in that repo that works.

Notice that mutation events in IE and Chrome/Safari are not very reliable so I doubt they would be good enough to mirror a page.

@arv arv closed this as completed May 6, 2014
@veryhim
Copy link
Author

veryhim commented May 9, 2014

thanks.

Polyfill (independently) provided the required Mutation Observer functionality in IE9 and thus helped in replicating/updating the page.
It works great; just that setting/using 'global' (done with global.MutationObserver) caused problem. Had to handle it separately (reason could be in my application somewhere or how it is picked in my environment by other libraries).

@arv
Copy link
Contributor

arv commented May 9, 2014

Would you mind providing some more details? Can you post a jsbin?

@rushik
Copy link

rushik commented Jul 18, 2014

Veryhim - I have similar requirement to use polymer version of MutationOberserver with mutation-summary/tree-mirror for IE9 and IE10, were you able to get success with this? If possible can you share your experience/code?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants