Bug 906301 - Follow the DOM specs more strictly in case of mutations. r=peterv, a=lsblakk