1Test creation of each type of Node and check intial values 2 3On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". 4 5 6Attribute creation using createElement on an HTML doc: 7PASS attr.nodeName is 'foo' 8PASS attr.name is 'foo' 9FAIL attr.localName should be null (of type object). Was foo (of type string). 10PASS attr.namespaceURI is null 11PASS attr.prefix is null 12PASS attr.nodeValue is '' 13PASS attr.value is '' 14PASS attr.attributes is null 15Attribute creation using createElementNS on an HTML doc: 16PASS attr.nodeName is 'example:foo' 17PASS attr.name is 'example:foo' 18PASS attr.localName is 'foo' 19PASS attr.namespaceURI is 'http://www.example.com' 20PASS attr.prefix is 'example' 21PASS attr.nodeValue is '' 22PASS attr.value is '' 23PASS attr.attributes is null 24Attribute creation using createElement on an XHTML doc: 25PASS attr.nodeName is 'foo' 26PASS attr.name is 'foo' 27FAIL attr.localName should be null (of type object). Was foo (of type string). 28PASS attr.namespaceURI is null 29PASS attr.prefix is null 30PASS attr.nodeValue is '' 31PASS attr.value is '' 32PASS attr.attributes is null 33Attribute creation using createElementNS on an XHTML doc: 34PASS attr.nodeName is 'example:foo' 35PASS attr.name is 'example:foo' 36PASS attr.localName is 'foo' 37PASS attr.namespaceURI is 'http://www.example.com' 38PASS attr.prefix is 'example' 39PASS attr.nodeValue is '' 40PASS attr.value is '' 41PASS attr.attributes is null 42PASS comment.nodeName is '#comment' 43PASS comment.localName is null 44PASS comment.namespaceURI is null 45PASS comment.prefix is null 46PASS comment.nodeValue is 'foo' 47PASS comment.data is 'foo' 48PASS comment.attributes is null 49PASS document.createCDATASection('foo') threw exception Error: NOT_SUPPORTED_ERR: DOM Exception 9. 50PASS cdata.nodeName is '#cdata-section' 51PASS cdata.localName is null 52PASS cdata.namespaceURI is null 53PASS cdata.prefix is null 54PASS cdata.nodeValue is 'foo' 55PASS cdata.data is 'foo' 56PASS cdata.attributes is null 57PASS fragment.nodeName is '#document-fragment' 58PASS fragment.localName is null 59PASS fragment.namespaceURI is null 60PASS fragment.prefix is null 61PASS fragment.nodeValue is null 62PASS fragment.attributes is null 63PASS doc.nodeName is '#document' 64PASS doc.localName is null 65FAIL doc.namespaceURI should be http://www.w3.org/1999/xhtml (of type string). Was null (of type object). 66PASS doc.prefix is null 67PASS doc.nodeValue is null 68PASS doc.attributes is null 69PASS doctype.nodeName is 'svg' 70PASS doctype.name is 'svg' 71PASS doctype.localName is null 72PASS doctype.namespaceURI is null 73PASS doctype.prefix is null 74PASS doctype.nodeValue is null 75PASS doctype.attributes is null 76Element creation using createElement on an HTML doc: 77PASS element.nodeName is 'PRE' 78FAIL element.localName should be null (of type object). Was pre (of type string). 79FAIL element.namespaceURI should be null (of type object). Was http://www.w3.org/1999/xhtml (of type string). 80PASS element.prefix is null 81PASS element.nodeValue is null 82PASS element.attributes.toString() is '[object NamedNodeMap]' 83Prefixed element creation using createElementNS on an HTML doc: 84PASS element.nodeName is 'html:pre' 85PASS element.localName is 'pre' 86PASS element.namespaceURI is 'http://www.w3.org/1999/xhtml' 87PASS element.prefix is 'html' 88PASS element.nodeValue is null 89PASS element.attributes.toString() is '[object NamedNodeMap]' 90SVG Element creation using createElementNS on an HTML doc: 91PASS element.nodeName is 'svg' 92PASS element.localName is 'svg' 93PASS element.namespaceURI is 'http://www.w3.org/2000/svg' 94PASS element.prefix is null 95PASS element.nodeValue is null 96PASS element.attributes.toString() is '[object NamedNodeMap]' 97Unknown Element creation using createElementNS on an HTML doc: 98PASS element.nodeName is 'foo:svg' 99PASS element.localName is 'svg' 100PASS element.namespaceURI is 'http://www.webkit.org' 101PASS element.prefix is 'foo' 102PASS element.nodeValue is null 103PASS element.attributes.toString() is '[object NamedNodeMap]' 104Element creation using createElementNS on an HTML doc: 105FAIL element.nodeName should be pre. Was PRE. 106PASS element.localName is 'pre' 107PASS element.namespaceURI is 'http://www.w3.org/1999/xhtml' 108PASS element.prefix is null 109PASS element.nodeValue is null 110PASS element.attributes.toString() is '[object NamedNodeMap]' 111Element creation using createElement on an XHTML doc: 112PASS element.nodeName is 'pre' 113FAIL element.localName should be null (of type object). Was pre (of type string). 114FAIL element.namespaceURI should be null (of type object). Was http://www.w3.org/1999/xhtml (of type string). 115PASS element.prefix is null 116PASS element.nodeValue is null 117PASS element.attributes.toString() is '[object NamedNodeMap]' 118Element creation using createElementNS on an XHTML doc: 119PASS element.nodeName is 'html:pre' 120PASS element.localName is 'pre' 121PASS element.namespaceURI is 'http://www.w3.org/1999/xhtml' 122PASS element.prefix is 'html' 123PASS element.nodeValue is null 124PASS element.attributes.toString() is '[object NamedNodeMap]' 125PASS document.createEntityReference('gt') threw exception Error: NOT_SUPPORTED_ERR: DOM Exception 9. 126PASS entityReference.nodeName is 'gt' 127PASS entityReference.localName is null 128PASS entityReference.namespaceURI is null 129PASS entityReference.prefix is null 130PASS entityReference.nodeValue is null 131PASS entityReference.attributes is null 132PASS document.createProcessingInstruction('xml-stylesheet', 'type="text/xsl" href="missing.xsl"') threw exception Error: NOT_SUPPORTED_ERR: DOM Exception 9. 133PASS processingInstruction.nodeName is 'xml-stylesheet' 134PASS processingInstruction.localName is null 135PASS processingInstruction.namespaceURI is null 136PASS processingInstruction.prefix is null 137PASS processingInstruction.nodeValue is 'type="text/xsl" href="missing.xsl"' 138PASS processingInstruction.attributes is null 139PASS processingInstruction.target is 'xml-stylesheet' 140PASS processingInstruction.data is 'type="text/xsl" href="missing.xsl"' 141PASS text.nodeName is '#text' 142PASS text.localName is null 143PASS text.namespaceURI is null 144PASS text.prefix is null 145PASS text.nodeValue is 'foo' 146PASS text.data is 'foo' 147PASS text.attributes is null 148PASS successfullyParsed is true 149 150TEST COMPLETE 151 152