Skip to content Skip to sidebar Skip to footer

Webkit Mutation Observer Callback Not Triggered When Select Box Attribute's Change

I am trying to monitor changes to select box (or nested option elements) with new Mutation Observer functionality. However, only 'setAttribute' is triggering mutation observer's ca

Solution 1:

@gryzzly, I've updated the Chromium bug with a detailed response: http://code.google.com/p/chromium/issues/detail?id=128991#c4

Mutation Observers are limited to observing the DOM serialized state. If you'd like to know if Mutation Observers can observe something, just do take a look at what innerHTML outputs for the element. If you can see the change in state reflected in changes to the markup which that produces, then Mutation Observers should be able to hear about it.

TL;DR: this is working as intended; to observe changes to IDL attributes like HTMLSelectElement.value, input events like onclick or onchange are probably your best bet.

Post a Comment for "Webkit Mutation Observer Callback Not Triggered When Select Box Attribute's Change"