<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>