blob: a8064c5487aa4f07be3706c48a23b1c03b269685 [file] [log] [blame]
<!DOCTYPE html>
<html>
<body>
<p>Tests uniquing attributes via setAttribute. WebKit shouldn't crash under GuardMalloc or ASAN builds.</p>
<div></div>
<script>
if (window.testRunner)
testRunner.dumpAsText();
var div = document.querySelector('div');
div.setAttribute('name', 'a');
var divClone = div.cloneNode(true);
document.body.appendChild(divClone);
div.setAttribute('name', 'b');
divClone.setAttribute('name', 'b');
document.write("PASS. WebKit didn't crash.");
</script>
</body>
</html>