Skip to content

Commit

Permalink
Add check for DOMCharacterDataModified event
Browse files Browse the repository at this point in the history
  • Loading branch information
hazzik committed Mar 11, 2013
1 parent 0c3cae1 commit 9eb25ea
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion mutabor.js
Expand Up @@ -82,8 +82,11 @@ window.mutabor = (function () {
var body = document.getElementsByTagName('body')[0];
body.appendChild(div);
div.setAttribute('mutabor-test', 'mutabor-test');
div.innerHTML = 'mutabor-test';
if (div.firstChild && div.firstChild.deleteData) {
div.firstChild.deleteData(4, 4); //check for DOMCharacterDataModified
}
body.removeChild(div);

return caps;
};

Expand Down

0 comments on commit 9eb25ea

Please sign in to comment.