Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / createAttribute-exception.html
blobe561a6a789c1ee559331d33699b52487e48d40c1
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2 <html><head>
3 <meta http-equiv="Content-type" content="text/html; charset=UTF-8"/>
4 <title>Test</title>
5 <script type="text/javascript" charset="utf-8">
6 function test()
8 if (window.testRunner)
9 testRunner.dumpAsText();
11 try {
12 var attribute = document.createAttribute("ba:test");
13 var attribute2 = document.createAttribute("xmlns");
14 var attribute3 = document.createAttribute("ba:xmlns");
15 document.getElementById('res').innerHTML="PASSED";
16 } catch(e) {
17 document.getElementById('res').innerHTML="FAILED";
20 </script>
21 </head>
22 <body id="regression" onload="javascript:test();">
23 <p> <a href="https://bugs.webkit.org/show_bug.cgi?id=18066">bug18066</a> REGRESSION: createAttribute throws NAMESPACE_ERR exception </p>
24 <p> You should see PASSED once. </p>
25 <div id="res"> </div>
26 </body></html>