blob: feb18faebe7e0d696ca06cb26c04c505855c6a88 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<script src="../../resources/js-test-pre.js"></script>
</head>
<body>
<script>
description("Tests that mutating an elements attribute map during DOMSubtreeModified event dispatch doesn't break Node.normalize. Passes if it doesn't crash.");
var el = document.createElement('div')
el.setAttribute('a', 'a')
el.setAttribute('b', 'b')
el.attributes[1].value += "test"
el.attributes[1].addEventListener('DOMSubtreeModified', function() { el.removeAttribute('b') }, false)
el.normalize()
</script>
<script src="../../resources/js-test-post.js"></script>
</body>
</html>