Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / Window / attr-constructor.html
blob0a02db00e43bbc7d3bd68ad72f2fa76a191549cc
1 <body>
2 <p>Test for <a href="http://bugs.webkit.org/show_bug.cgi?id=13480">bug 13480</a>:
3 window.Attr is undefined.</p>
4 <div id=test></div>
5 <script>
6 try {
7 if (window.testRunner)
8 testRunner.dumpAsText();
10 Attr.prototype.foobar = function () { document.write("SUCCESS"); }
12 document.getElementById("test").getAttributeNode("id").foobar();
13 } catch (ex) {
14 document.write(ex);
16 </script>
17 </body>