Since Nightly r31232 webkit throws an exception if a namespace is used with the createAttribute method. Example : document.createAttribute("ba:profile");
Created attachment 20025 [details] Test Case
Sounds like a side-effect of <http://webkit.org/blog/167/webkit-gets-an-a-on-acid3/>.
I *knew* I should have created a createAttribute("foo:bar") test case... Should be easy to fix.
Comment on attachment 20025 [details] Test Case ><!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() > { > try > { > var attribute = document.createAttribute("ba:test"); window.alert("No bug with this WebKit"); > } > catch(e) > { > window.alert(e.message); > } > } > </script> > </head><body id="regression" onload="javascript:test();"> > ></body></html>
Comment on attachment 20025 [details] Test Case ><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html><body><pre style="word-wrap: break-word; white-space: pre-wrap;"><!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() > { > try > { > var attribute = document.createAttribute("ba:test"); > window.alert("Bug not happening with this WebKit"); > } > catch(e) > { > window.alert(e.message); > } > } > </script> > </head> > <body id="regression" onload="javascript:test();"> > </body> ></html>
Created attachment 20153 [details] Test Case
Created attachment 20154 [details] New Test Case
All regressions are P1.
Still happens in r33431.
Created attachment 21424 [details] Add a boolean parameter to createAttributeNS to bypass namespace checks
Comment on attachment 21424 [details] Add a boolean parameter to createAttributeNS to bypass namespace checks Looks good, r=me.
Committed in r34315.
Mass moving XML DOM bugs to the "DOM" Component.