We return '' instead of null for atributeName when the type is characterData (I didn't try childNodes but I assume we have the same issue there and other places). Steps to reproduce var text = document.createTextNode('abc'); var observer = new WebKitMutationObserver(function() {}); observer.observe(text, { characterData: true }); text.data = 'def'; var records = observer.takeRecords(); shouldBeNull('record[0].attributeName');
Also see bug 98439 which is about oldValue not being null when expected
I'll take both this and 98439 (will fix them in the same patch).
Created attachment 167181 [details] Patch
Comment on attachment 167181 [details] Patch Clearing flags on attachment: 167181 Committed r130442: <http://trac.webkit.org/changeset/130442>
All reviewed patches have been landed. Closing bug.