Mutation Obervers in Chrome are not detecting attribute and css changes

I am in Chrome 19 and I created a new mutation observer object:

var observer = new WebKitMutationObserver(function(mutations, observer) {
  console.log(mutations, observer);
});

And then I observe:

observer.observe(document, {
  subtree: true,
  childList: true,
  characterData: true,
  attribute: true      
});

It seems that this setup only gets triggered when i insert or remove a node, or change the text of a node. It does not get triggered if I change an attribute or an inline css style of an element. Why is this?

Answers


According to the spec draft, the property you want to set is attributes: true, not attribute: true.


Need Your Help

* css hack no longer working in ie8?

html css

Ok so i want to make my border css only applicable to ie8 or earlier (as in not ie9 when it comes out).

How to load the next video before the first video ends using mediaElement?

c# .net wpf

I have a single video and I want to repeat the video forever; however, I want the video to repeat before it has completely ended. Unfortunately, the event MediaEnded fires only when the video has