blob: 0a02db00e43bbc7d3bd68ad72f2fa76a191549cc [file] [log] [blame]
<body>
<p>Test for <a href="http://bugs.webkit.org/show_bug.cgi?id=13480">bug 13480</a>:
window.Attr is undefined.</p>
<div id=test></div>
<script>
try {
if (window.testRunner)
testRunner.dumpAsText();
Attr.prototype.foobar = function () { document.write("SUCCESS"); }
document.getElementById("test").getAttributeNode("id").foobar();
} catch (ex) {
document.write(ex);
}
</script>
</body>