| <!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> |
| <html><head> |
| <meta http-equiv="Content-type" content="text/html; charset=UTF-8"/> |
| <title>Test</title> |
| <script type="text/javascript" charset="utf-8"> |
| function test() |
| { |
| if (window.testRunner) |
| testRunner.dumpAsText(); |
| |
| try { |
| var attribute = document.createAttribute("ba:test"); |
| var attribute2 = document.createAttribute("xmlns"); |
| var attribute3 = document.createAttribute("ba:xmlns"); |
| document.getElementById('res').innerHTML="PASSED"; |
| } catch(e) { |
| document.getElementById('res').innerHTML="FAILED"; |
| } |
| } |
| </script> |
| </head> |
| <body id="regression" onload="javascript:test();"> |
| <p> <a href="https://bugs.webkit.org/show_bug.cgi?id=18066">bug18066</a> REGRESSION: createAttribute throws NAMESPACE_ERR exception </p> |
| <p> You should see PASSED once. </p> |
| <div id="res"> </div> |
| </body></html> |