-up2005-10-04 Eric Seidel <eseidel@apple.com>
+2005-10-05 Anders Carlsson <andersca@mac.com>
+
+ Reviewed by Maciej.
+
+ * dom/xhtml/level3/core/nodeissamenode01-expected.txt:
+ * dom/xhtml/level3/core/nodeissamenode02-expected.txt:
+ * dom/xhtml/level3/core/nodeissamenode03-expected.txt:
+ * dom/xhtml/level3/core/nodeissamenode04-expected.txt:
+ * dom/xhtml/level3/core/nodeissamenode05-expected.txt:
+ * dom/xhtml/level3/core/nodeissamenode06-expected.txt:
+ * dom/xhtml/level3/core/nodeissamenode10-expected.txt:
+ These tests pass now.
+
+2005-10-04 Eric Seidel <eseidel@apple.com>
Reviewed by mjs.
--- /dev/null
+<?xml version="1.0"?>
+<html xmlns="http://www.w3.org/1999/xhtml">
+<script type="text/javascript">
+function debug(str) {
+ t = document.getElementById('console').firstChild;
+
+ t.data += str + "\n";
+}
+
+function runTests() {
+ if (window.layoutTestController) {
+ layoutTestController.dumpAsText();
+ }
+
+ t = document.getElementById('test');
+ attr = t.getAttributeNodeNS('http://www.example.org/', 'attr');
+ errs = false;
+
+ if (!attr) {
+ debug('Could not find attribute ');
+ return;
+ }
+
+ if (attr.nodeName != 'test:attr') {
+ debug('attr.nodeName is ' + attr.nodeName + ', expected test:attr');
+ errs = true;
+ }
+
+ if (attr.namespaceURI != 'http://www.example.org/') {
+ debug('attr.namespaceURI is ' + attr.namespaceURI + ', expected http://www.example.org');
+ errs = true;
+ }
+
+ if (attr.prefix != 'test') {
+ debug('attr.prefix is ' + attr.prefix + ', expected test');
+ errs = true;
+ }
+
+ if (attr.localName != 'attr') {
+ debug('attr.localName is ' + attr.localName + ', expected attr');
+ errs = true;
+ }
+
+ if (!errs)
+ debug('All tests succeeded!');
+}
+
+</script>
+<body onload="runTests();">
+<div>
+This tests that attributes will have the correct namespace, prefix and local name set.
+</div>
+<div id="test" xmlns:test="http://www.example.org/" test:attr="Attribute"></div>
+<pre id="console">
+</pre>
+</body>
+</html>