Phantomjs: Support for Mutation Observers

Created on 17 Aug 2012  路  31Comments  路  Source: ariya/phantomjs

_[email protected] commented:_

Does phantom JS supports Mutation Observer API?

Disclaimer:
This issue was migrated on 2013-03-15 from the project's former issue tracker on Google Code, Issue #715.
:star2:   4 people had starred this issue at the time of migration.

All 31 comments

_[email protected] commented:_

Can't you check it yourself? Surely it does not take more than 5 minutes to do that.

_[email protected] commented:_

hi,

I did check this by testing (typeof WebKitMutationObserver != 'function')
and looks like phantomjs doesn't support it or we don't have the nightly webkit.

I am using the windows build.

Can I help in anyway to get that support in? Or when will it be available?

Thanks

_[email protected] commented:_

Updating to new WebKit is activity for issue 31. Check also the discussion in the mailing-list, this comes too often and better I don't repeat myself too much.

When is support for MutationObserver planned?

Somewhat of a further annoyance is that you can't even polyfill MutationObserver in PhantomJS since Webkit doesn't support the DOMAttrModified event.

https://github.com/Polymer/MutationObservers

@ariya Any chance we could get an update on this? I'd like to know if support for this is planned for the near future

Just adding my voice to this. It would be great to see mutation observers supported.

+1

+1

+1

+1

+1

+1

+1

+1

+1

+1

+1

+1

+1

image

Labels ... Status-New

Status-New

New

I am not wholly unwilling to believe that a few years is still "new" in PhantomJS's dev cycle.

@qstrahl Because we're a bunch of "lazy" volunteers (with families, full-time jobs, life, and other commitments).

@ariya could you sketch what would be involved in implementing mutation observers or at least where I should start? (I am completely new to phantom)

@unao Search the mailing-list archive for PhantomJS 2.

@ariya You forgot "hard-working"!

Just having a bit of fun -- I thought these comments could use a break from the barrage of +1s =)

+1

In the meantime, self-plug, I've written a js shim for the interface. It should be suitable for running test-suites and the like

https://github.com/megawac/MutationObserver.js

+1

+1

2.0 supports MutationObserver API.

:fireworks:

Was this page helpful?
0 / 5 - 0 ratings