Summary: | REGRESSION: createAttribute throws NAMESPACE_ERR exception | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Romain Bohdanowicz <romain.bohdanowicz> | ||||||||||
Component: | DOM | Assignee: | Julien Chaffraix <jchaffraix> | ||||||||||
Status: | RESOLVED FIXED | ||||||||||||
Severity: | Major | CC: | ap, cdumez, eric | ||||||||||
Priority: | P1 | Keywords: | EasyFix, Regression | ||||||||||
Version: | 528+ (Nightly build) | ||||||||||||
Hardware: | Mac | ||||||||||||
OS: | OS X 10.5 | ||||||||||||
Attachments: |
|
Description
Romain Bohdanowicz
2008-03-25 07:20:15 PDT
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. 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. |