+2006-02-08 Boris Daljevic <boris@backbase.com>
+
+ Reviewed and tweaked by Darin.
+
+ - test for http://bugzilla.opendarwin.org/show_bug.cgi?id=6648
+ Safari strips namespace prefix when using setAttribute(), but should treat it as part of name
+
+ * fast/dom/Element: Added.
+ * fast/dom/Element/setAttribute-with-colon.html: Added.
+ * fast/dom/Element/setAttribute-with-colon-expected.txt: Added.
+
2006-02-08 Mitz Pettel <opendarwin.org@mitzpettel.com>
Reviewed by Hyatt.
--- /dev/null
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+ "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+<head>
+<script>
+function debug(str) {
+ pre = document.getElementById('console');
+ text = document.createTextNode(str + '\n');
+ pre.appendChild(text);
+}
+
+function runTests() {
+ if (window.layoutTestController)
+ layoutTestController.dumpAsText();
+
+ elem = document.createElementNS('http://www.example.org', 'test');
+ attr = elem.setAttribute('bb:dddd', 'attr_value');
+ attrNode = elem.attributes[0];
+ debug("namespace is " + attrNode.namespaceURI);
+ debug("prefix is " + attrNode.prefix);
+ debug("localName is " + attrNode.localName);
+ if (attrNode.namespaceURI == null && attrNode.prefix == null && attrNode.localName == 'bb:dddd')
+ debug('SUCCESS')
+ else
+ debug('FAILURE')
+}
+
+</script>
+</head>
+<body onload="runTests();">
+<p>This tests checks whether setAttribute allows name parameters with colons in them. If the test is successful, text below should say "SUCCESS".</p>
+<pre id="console"></pre>
+</body>
+</html>