Javascript Chrome中的服务器没有检测到属性和css的变化

Javascript Chrome中的服务器没有检测到属性和css的变化,javascript,html,dom,google-chrome,mutation-observers,Javascript,Html,Dom,Google Chrome,Mutation Observers,我在Chrome 19中创建了一个新的突变观察者对象: var observer = new WebKitMutationObserver(function(mutations, observer) { console.log(mutations, observer); }); 然后我观察到: observer.observe(document, { subtree: true, childList: true, characterData: true, attribute

我在Chrome 19中创建了一个新的突变观察者对象:

var observer = new WebKitMutationObserver(function(mutations, observer) {
  console.log(mutations, observer);
});
然后我观察到:

observer.observe(document, {
  subtree: true,
  childList: true,
  characterData: true,
  attribute: true      
});
似乎只有在插入或删除节点或更改节点的文本时才会触发此设置。如果我更改元素的属性或内联css样式,它不会被触发。这是为什么?

根据,要设置的属性是
属性:true
,而不是
属性:true