DOM Level 3 Core Test Suite Matrix

415 tests were ran against the Xerces implementation. 10 failures/errors were reported.

Note: (*) indicates that the test is suspicious and is probably invalid.

Tests with failures
Test Description Xerces XercesAltConfig
domimplementationgetfeature01

The method getFeature returns a specialized object which implements the specialized APIs of the specified feature and version. This method also allow the implementation to provide specialized objects which do not support the DOMImplementation interface. If the DOMObject returned by this method implements the DOMImplementation interface, it must delegate to the primary core DOMImplementation and not return results inconsistent with the primary core DOMImplementation such as hasFeature, getFeature, etc. Invoke getFeature method on this DOMImplementation with the value of the feature parameter as Core and version as 1.0. This should return a DOMImplmentation object that's not null.

Failure
Failure
domimplementationgetfeature02

The method getFeature returns a specialized object which implements the specialized APIs of the specified feature and version. This method also allow the implementation to provide specialized objects which do not support the DOMImplementation interface. If the DOMObject returned by this method implements the DOMImplementation interface, it must delegate to the primary core DOMImplementation and not return results inconsistent with the primary core DOMImplementation such as hasFeature, getFeature, etc.

Invoke getFeature method on this DOMImplementation with the value of the feature parameter as Core and version as "". This should return a DOMImplementation object that's not null.

Failure
Failure
entitygetinputencoding03 (*)

The method getInputEncoding returns the attribute specifying the encoding used for this entity at the time of parsing, when it is an external parsed entity. This is null if it an entity from the internal subset or if it is not known.

Call the getInputEncoding method on a UTF-8 encoded document that contains an external parsed entity encoded in UTF-8 and check if the value returned is UTF-8.

Failure
Failure
entitygetinputencoding04 (*)

The method getInputEncoding returns the attribute specifying the encoding used for this entity at the time of parsing, when it is an external parsed entity. This is null if it an entity from the internal subset or if it is not known.

Call the getInputEncoding method on a UTF-16 encoded document that contains an external parsed entity encoded in UTF-16 and check if the value returned is UTF-16.

Failure
Failure
entitygetxmlencoding03 (*)

The method getXmlEncoding returns an attribute specifying, as part of the text declaration, the encoding of this entity, when it is an external parsed entity. This is null otherwise Call the getXmlVersion method on a UTF-8 encoded document that contains an external parsed entity declaration and check if the value returned is equal to that specified in its version attribute in its TextDecl which is 1.0.

Failure
Failure
entitygetxmlencoding04 (*)

The method getXmlEncoding returns an attribute specifying, as part of the text declaration, the encoding of this entity, when it is an external parsed entity. This is null otherwise Call the getXmlEncoding method on a UTF-8 encoded document that contains an external parsed entity encoded in UTF-16 and check if the value returned is UTF-16.

Failure
Failure
entitygetxmlversion03 (*)

The method getXmlVersion returns as part of the text declaration, the version of this entity, when it is an external parsed entity. This is null otherwise.

Call the getXmlVersion method on a UTF-8 encoded document that contains an external parsed entity declaration and check if the value returned is equal to that specified in its version attribute in its TextDecl which is 1.0.

Failure
Failure
entitygetxmlversion04 (*)

The method getXmlVersion returns as part of the text declaration, the version of this entity, when it is an external parsed entity. This is null otherwise.

Call the getXmlVersion method on a UTF-16 encoded document that contains an external parsed entity declaration and check if the value returned is equal to that specified in its version attribute in its TextDecl which is 1.0.

Failure
Failure
textiselementcontentwhitespace01

The method isElementContentWhitespace returns whether this text node contains whitespace in element content.

Invoke isElementContentWhitespace on a newly created Text Node that contains whitespace.

Failure
Failure
textiselementcontentwhitespace03

The method isWhitespaceInElementContent returns whether this text node contains whitespace in element content.

Invoke isWhitespaceInElementContent on an existing Text Node that contains whitespace.

Failure
Failure
Tests passed by all implementations
Test Description
attrisid01

The method isId returns whether this attribute is known to be of type ID or not.

Retrieve the third address element's street attribute, whose type is not ID. Invoke isID on the street attribute, this should return false since street's type is not ID.

attrisid02

The method isId returns whether this attribute is known to be of type ID or not.

Invoke setIdAttribute on the third address element's new attribute and set isID=true. Verify by calling isID on the new attribute and check if the value returned is true.

attrisid03

The method isId returns whether this attribute is known to be of type ID or not.

Invoke setIdAttribute on the third address element's street attribute and set isID=false. Verify by calling isID on the street attribute and getElementById on document and check if the value returned is false.

attrisid04

The method isId returns whether this attribute is known to be of type ID or not.

Retrieve the fourth address element's zone attribute, whose type is ID. Invoke isID on the street attribute, this should return true.

attrisid05

The method isId returns whether this attribute is known to be of type ID or not.

Retrieve the fourth address element's zone attribute, whose type is ID. Deep clone the element node and append it as a sibling of the address node. We now have two zone attributes of type ID with identical values. Invoke isID on the street attribute, should this return true???

attrisid06

The method isId returns whether this attribute is known to be of type ID or not.

Invoke isId on a new Attr node. Check if the value returned is false.

documentadoptnode01

The adoptNode method changes the ownerDocument of a node, its children, as well as the attached attribute nodes if there are any. If the node has a parent it is first removed from its parent child list. If the node is an Attr node, the ownerElement attribute is set to null and the specified flag is set to true on the adopted Attr. The descendants of the source Attr are recursively adopted. Adopt the street attribute node of the second element whose localName is address and namespaceURI http://www.nist.gov. Check if this attribute has been adopted successfully by verifying the nodeName, nodeType, nodeValue, specified and ownerElement attributes of the adopted node.

documentadoptnode02

The adoptNode method changes the ownerDocument of a node, its children, as well as the attached attribute nodes if there are any. If the node has a parent it is first removed from its parent child list. If the node is an Attr node, the ownerElement attribute is set to null and the specified flag is set to true on the adopted Attr. The descendants of the source Attr are recursively adopted. Adopt the street attribute node of the second element whose localName is address and namespaceURI http://www.nist.gov using a new document object. Check if this attribute has been adopted successfully by verifying the nodeName, nodeType, nodeValue, ownerElement and specified attributes of the adopted node.

documentadoptnode03

The adoptNode method changes the ownerDocument of a node, its children, as well as the attached attribute nodes if there are any. If the node has a parent it is first removed from its parent child list. If the node is an Attr node, the ownerElement attribute is set to null and the specified flag is set to true on the adopted Attr. The descendants of the source Attr are recursively adopted. Invoke adoptNode on this document to adopt the a new namespace aware attribute node. Check if this attribute has been adopted successfully by verifying the nodeName, namespaceURI, prefix, specified and ownerElement attributes of the adopted node.

documentadoptnode04

The adoptNode method changes the ownerDocument of a node, its children, as well as the attached attribute nodes if there are any. If the node has a parent it is first removed from its parent child list. If the node is an Attr node, the ownerElement attribute is set to null and the specified flag is set to true on the adopted Attr. The descendants of the source Attr are recursively adopted. Invoke adoptNode on a new document to adopt a new namespace aware attribute node created by this document. Check if this attribute has been adopted successfully by verifying the nodeName, namespaceURI, prefix, specified and ownerElement attributes of the adopted node.

documentadoptnode06

The adoptNode method changes the ownerDocument of a node, its children, as well as the attached attribute nodes if there are any. If the node has a parent it is first removed from its parent child list. If the node is an Attr node, the ownerElement attribute is set to null and the specified flag is set to true on the adopted Attr. The descendants of the source Attr are recursively adopted. Invoke adoptNode on a new document to adopt the a new Attribute node having a Text and an EntityReference child. Check if this attribute has been adopted successfully by verifying the nodeName, namespaceURI, prefix, specified and ownerElement attributes of the adopted node. Also verify the ownerDocument attribute of the adopted node and the adopted children of the attribute node.

documentadoptnode07

The adoptNode method changes the ownerDocument of a node, its children, as well as the attached attribute nodes if there are any. If the node has a parent it is first removed from its parent child list. Document nodes cannot be adopted and throw a NOT_SUPPORTED_ERR if an attempt is made to do so.

Invoke the adoptNode method on this document with the value of the source parameter as itself. Verify if a NOT_SUPPORTED_ERR is thrown.

documentadoptnode08

The adoptNode method changes the ownerDocument of a node, its children, as well as the The adoptNode method changes the ownerDocument of a node, its children, as well as the attached attribute nodes if there are any. If the node has a parent it is first removed from its parent child list. Document nodes cannot be adopted and throw a NOT_SUPPORTED_ERR if an attempt is made to do so.

Invoke the adoptNode method on this document with a new document as the value of the source parameter. Verify if a NOT_SUPPORTED_ERR is thrown.

documentadoptnode09

The adoptNode method changes the ownerDocument of a node, its children, as well as the The adoptNode method changes the ownerDocument of a node, its children, as well as the attached attribute nodes if there are any. If the node has a parent it is first removed from its parent child list. Document nodes cannot be adopted and throw a NOT_SUPPORTED_ERR if an attempt is made to do so.

Invoke the adoptNode method on a new document with this document as the value of the source parameter. Verify if a NOT_SUPPORTED_ERR is thrown.

documentadoptnode10

The adoptNode method changes the ownerDocument of a node, its children, as well as the attached attribute nodes if there are any. If the node has a parent it is first removed from its parent child list. DocumentType nodes cannot be adopted and throw a NOT_SUPPORTED_ERR if an attempt is made to do so.

Invoke the adoptNode method on this document with the value of the source parameter as this documents doctype node. Verify if a NOT_SUPPORTED_ERR is thrown.

documentadoptnode11

The adoptNode method changes the ownerDocument of a node, its children, as well as the attached attribute nodes if there are any. If the node has a parent it is first removed from its parent child list. DocumentType nodes cannot be adopted and throw a NOT_SUPPORTED_ERR if an attempt is made to do so.

Invoke the adoptNode method on this document with the value of the source parameter equal to a new doctype node. Verify if a NOT_SUPPORTED_ERR is thrown.

documentadoptnode12

The adoptNode method changes the ownerDocument of a node, its children, as well as the attached attribute nodes if there are any. If the node has a parent it is first removed from its parent child list. DocumentType nodes cannot be adopted and throw a NOT_SUPPORTED_ERR if an attempt is made to do so.

Invoke the adoptNode method on a new document with the value of the source parameter equal to a new doctype node. Verify if a NOT_SUPPORTED_ERR is thrown.

documentadoptnode16

The adoptNode method changes the ownerDocument of a node, its children, as well as the attached attribute nodes if there are any. If the node has a parent it is first removed from its parent child list. If the node is an DocumentFragment node, its descendants are recursively adopted.

Using the method adoptNode, adopt a newly created DocFragment as below <parent> <child state=&ent3;>Test</child> </parent> Verify if the node has been adopted correctly by checking the value of the attribute value of the adopted node which is an entity reference that is defined in this document.

documentadoptnode17

The adoptNode method changes the ownerDocument of a node, its children, as well as the attached attribute nodes if there are any. If the node has a parent it is first removed from its parent child list. Entity nodes cannot be adopted and since they are readonly throw a NO_MODIFICATION_ALLOWED_ERR if an attempt is made to do so.

Invoke the adoptNode method on this document with the entity ent1 as the source. Since this is read-only verify if a NO_MODIFICATION_ALLOWED_ERR is thrown.

documentadoptnode18

The adoptNode method changes the ownerDocument of a node, its children, as well as the attached attribute nodes if there are any. If the node has a parent it is first removed from its parent child list. Entity nodes cannot be adopted and since they are readonly throw a NO_MODIFICATION_ALLOWED_ERR if an attempt is made to do so.

Invoke the adoptNode method on a new document with the entity ent4 as the source. Since this is read-only verify if a NO_MODIFICATION_ALLOWED_ERR is thrown.

documentadoptnode19

The adoptNode method changes the ownerDocument of a node, its children, as well as the attached attribute nodes if there are any. If the node has a parent it is first removed from its parent child list. Notation nodes cannot be adopted and since they are readonly throw a NO_MODIFICATION_ALLOWED_ERR if an attempt is made to do so.

Invoke the adoptNode method on this document with the notation notation1 as the source. Since this is read-only verify if a NO_MODIFICATION_ALLOWED_ERR is thrown.

documentadoptnode20

The adoptNode method changes the ownerDocument of a node, its children, as well as the attached attribute nodes if there are any. If the node has a parent it is first removed from its parent child list. Notation nodes cannot be adopted and since they are readonly throw a NO_MODIFICATION_ALLOWED_ERR if an attempt is made to do so.

Invoke the adoptNode method on a new document with the notation notation2 as the source. Since this is read-only verify if a NO_MODIFICATION_ALLOWED_ERR is thrown.

documentgetdocumenturi01

The getDocmentURI method returns the location of the document or null if undefined.

Retreive the documentURI of this document, and verify if it is not null.

documentgetdocumenturi02

The getDocmentURI method returns the location of the document or null if undefined.

Create a new Document, retreive its documentURI, and verify if it is null.

documentgetdocumenturi03

The getDocmentURI method returns the location of the document or null if undefined.

Import the documentElement node of this document into a new document. Since this node is now owned by the importing document, its documentURI attribute value should be null

documentgetinputencoding01

The method getInputEncoding returns the encoding used for this document at the time of the parsing.

Call the getInputEncoding method on a UTF-8 encoded document and check if the value returned is UTF-8.

documentgetinputencoding02

The method getInputEncoding returns the encoding used for this document at the time of the parsing

Call the getInputEncoding method on a new document and check if the value returned is null.

documentgetinputencoding03

The method getInputEncoding returns the encoding used for this document at the time of the parsing Call the getInputEncoding method on a on a UTF-16 (BE) encoded document and check if the value returned is UTF-16BE.

documentgetinputencoding04

The method getInputEncoding returns the encoding used for this document at the time of the parsing.

Call the getXmlEncoding method on a cloned UTF-8 encoded document and check if the value returned is UTF-8 or null (implementation dependent).

documentgetstricterrorchecking01

The getStrictErrorChecking method returns a boolean indicating if error checking is enforced or not. The default is true.

Verify if the (default) value of the strictErrorChecking attribute of this document object is true.

documentgetstricterrorchecking02

The getStrictErrorChecking method returns a boolean indicating if error checking is enforced or not. The default is true.

Verify if the (default)value of the strictErrorChecking attribute of a new Document object is true.

documentgetxmlencoding02

The method getXmlEncoding returns the the encoding of this document.

Call the getXmlEncoding method on a new document and check if the value returned is null.

documentgetxmlencoding04

The method getXmlEncoding returns the the encoding of this document.

Call the getXmlEncoding method on a UTF-8 encoded XML document that does not contain the encoding pseudo attribute in its XMLDecl and check if the value returend is null.

documentnormalizedocument01

The normalizeDocument method method acts as if the document was going through a save and load cycle, putting the document in a "normal" form. Invoke the normalizeDocument method on this document. Retreive the documentElement node and check the nodeName of this node to make sure it has not changed.

documentnormalizedocument02

The normalizeDocument method method acts as if the document was going through a save and load cycle, putting the document in a "normal" form. Retreive a CDATASection node and verify the nodeName of this node. Invoke the setNormalizationFeature method on this document to set the "cdata-sections" feature to false. Invoke the normalizeDocume method and verify if the CDATASection node has been transformed to a Text node.

documentnormalizedocument03

The normalizeDocument method method acts as if the document was going through a save and load cycle, putting the document in a "normal" form. Create an Element and a CDATASection node and verify the nodeName of this node and append these to this Document. Invoke the setNormalizationFeature method on this document to set the "cdata-sections" feature to false. Invoke the normalizeDocume method and verify if the CDATASection node has been transformed to a Text node.

documentnormalizedocument04

The normalizeDocument method method acts as if the document was going through a save and load cycle, putting the document in a "normal" form. Create an Element and a Comment node and verify the nodeName of this node and append these to this Document. Invoke the setNormalizationFeature method on this document to set the "cdata-sections" feature to false. Invoke the normalizeDocume method and verify if the CDATASection node has been transformed to a Text node.

documentrenamenode01

The method renameNode renames an existing node. When possible this simply changes the name of the given node, otherwise this creates a new node with the specified name and replaces the existing node with the new node as described below. Invoke the renameNode method to rename the street attribute node of the second element whose localName is address and namespaceURI http://www.nist.gov with the new namespaceURI as http://www.w3.org/DOM/Test and name as pre0fix:renamedNode. Check if this attribute has been renamed successfully by verifying the nodeName, namespaceURI, nodeType attributes of the renamed node.

documentrenamenode02

The method renameNode renames an existing node. When possible this simply changes the name of the given node, otherwise this creates a new node with the specified name and replaces the existing node with the new node as described below. Invoke the renameNode method to rename the street attribute node of the second element whose localName is address and namespaceURI http://www.nist.gov with the new namespaceURI as http://www.w3.org/DOM/Test and name as prefi0x:renamedNode. Check if this attribute has been renamed successfully by verifying the nodeName, namespaceURI, nodeType attributes of the renamed node.

documentrenamenode03

The method renameNode renames an existing node. When possible this simply changes the name of the given node, otherwise this creates a new node with the specified name and replaces the existing node with the new node as described below. Invoke the renameNode method to rename a new attribute node to one whose namespaceURI is http://www.w3.org/DOM/Test and name is pre0:fix1. Check if this attribute has been renamed successfully by verifying the nodeName, namespaceURI, nodeType attributes of the renamed node.

documentrenamenode04

The method renameNode renames an existing node. When possible this simply changes the name of the given node, otherwise this creates a new node with the specified name and replaces the existing node with the new node as described below. Invoke the renameNode method to rename a new attribute node to one whose namespaceURI is null and name is pf. Check if this attribute has been renamed successfully by verifying the nodeName, namespaceURI, nodeType attributes of the renamed node.

documentrenamenode05

The method renameNode renames an existing node. When possible this simply changes the name of the given node, otherwise this creates a new node with the specified name and replaces the existing node with the new node as described below. Invoke the renameNode method to rename a new attribute node to one whose namespaceURI is null and name is rened. Check if this attribute has been renamed successfully by verifying the nodeName, namespaceURI, nodeType attributes of the renamed node.

documentrenamenode06

The method renameNode renames an existing node. When possible this simply changes the name of the given node, otherwise this creates a new node with the specified name and replaces the existing node with the new node as described below. Invoke the renameNode method to rename the default attribute defaultAttr to one with the new namespaceURI as http://www.w3.org/DOM/Test and name as pre:renamedNode. Check if this attribute has been renamed successfully by verifying the nodeName, namespaceURI, nodeType attributes of the renamed node.

documentrenamenode07

The method renameNode renames an existing node. When possible this simply changes the name of the given node, otherwise this creates a new node with the specified name and replaces the existing node with the new node as described below. Invoke the renameNode method on a new document node to rename a new attribute node to one whose namespaceURI is http://www.w3.org/XML/1998/namespace and name is xml:dom. Check if this attribute has been renamed successfully by verifying the nodeName and namespaceURI attributes of the renamed node.

documentrenamenode08

The method renameNode renames an existing node. When the specified node was created from a different document than this document a WRONG_DOCUMENT_ERR.

Invoke the renameNode method on a new document node and try to rename the default attribute defaultAttr Check if a WRONG_DOCUMENT_ERR gets thrown.

documentrenamenode15

The method renameNode renames an existing node. When possible this simply changes the name of the given node, otherwise this creates a new node with the specified name and replaces the existing node with the new node as described below. Invoke the renameNode method to rename the second element whose localName is address and namespaceURI http://www.nist.gov with a new namespaceURI that is http://www.w3.org/DOM/Test and qualifiedName that is qnam:renamedNode. Check if this element has been renamed successfully by verifying the nodeName, namespaceURI, nodeType attributes of the renamed node.

documentrenamenode16

The method renameNode renames an existing node. When possible this simply changes the name of the given node, otherwise this creates a new node with the specified name and replaces the existing node with the new node as described below. Invoke the renameNode method to rename the second element whose localName is address and namespaceURI http://www.nist.gov with a new namespaceURI that is null and qualifiedName that is renamedNode. Check if this element has been renamed successfully by verifying the nodeName, attributes of the renamed node.

documentrenamenode17

The method renameNode renames an existing node. When possible this simply changes the name of the given node, otherwise this creates a new node with the specified name and replaces the existing node with the new node as described below. Invoke the renameNode method to rename a new element node of a new document so that its namespaceURI is http://www.w3.org/2000/xmlns/ and qualifiedName is xmlns:xmlns. Check if this element has been renamed successfully by verifying the nodeName, attributes of the renamed node.

documentrenamenode18

The method renameNode renames an existing node. en the specified node was created from a different document than this document a WRONG_DOCUMENT_ERR.

Invoke the renameNode method on this document and try to rename a new element node of a new document. Check if a WRONG_DOCUMENT_ERR gets thrown.

documentrenamenode20

The method renameNode renames an existing node aand raises a NAMESPACE_ERR if the qualifiedName has a prefix that is "xml" and the namespaceURI is different from "http://www.w3.org/XML/1998/namespace" Invoke the renameNode method on this document node to rename a node such that its qualifiedName has a prefix that is "xml:xml"and namespaceURI is "http://www.w3.org/XML/1998/namespace/". Check if a NAMESPACE_ERR gets thrown.

documentrenamenode21

The method renameNode renames an existing node and raises a NAMESPACE_ERR if the qualifiedName, or its prefix, is "xmlns" and the namespaceURI is different from "http://www.w3.org/2000/xmlns/".

Invoke the renameNode method on this document node to rename a node such that its qualifiedName has a prefix that is "xmlns:xml"and namespaceURI is "http://www.w3.org/2000/XMLNS/". Check if a NAMESPACE_ERR gets thrown.

documentrenamenode22

The method renameNode renames an existing node and raises a NAMESPACE_ERR if the qualifiedName, or its prefix, is "xmlns" and the namespaceURI is different from "http://www.w3.org/2000/xmlns/".

Invoke the renameNode method on this document node to rename a node such that its qualifiedName is "xmlns"and namespaceURI is "http://www.w3.org/1999/xmlns/". Check if a NAMESPACE_ERR gets thrown.

documentrenamenode25

The method renameNode renames an existing node and raises a NOT_SUPPORTED_ERR if the type of the specified node is neither ELEMENT_NODE nor ATTRIBUTE_NODE.

Invoke the renameNode method to attempt to rename a DOcumentType node of this Document. Check if a NOT_SUPPORTED_ERR gets thrown.

documentrenamenode26

The method renameNode renames an existing node and raises a NOT_SUPPORTED_ERR if the type of the specified node is neither ELEMENT_NODE nor ATTRIBUTE_NODE.

Invoke the renameNode method oto attempt to rename a new DocumentFragment node of this Document. Check if a NOT_SUPPORTED_ERR gets thrown.

documentrenamenode27

The method renameNode renames an existing node and raises a NOT_SUPPORTED_ERR if the type of the specified node is neither ELEMENT_NODE nor ATTRIBUTE_NODE.

Invoke the renameNode method to attempt to rename new Text, Comment, CDataSection, ProcessingInstruction and EntityReference nodes of a new Document. Check if a NOT_SUPPORTED_ERR is thrown.

documentrenamenode28

The method renameNode renames an existing node and raises a NOT_SUPPORTED_ERR if the type of the specified node is neither ELEMENT_NODE nor ATTRIBUTE_NODE.

Invoke the renameNode method to attempt to rename a Entity and Notation nodes of this Document. Check if a NOT_SUPPORTED_ERR gets thrown.

documentrenamenode29

The method renameNode renames an existing node and raises a INVALID_CHARACTER_ERR if the new qualified name contains an illegal character according to the XML version in use specified in the Document.xmlVersion attribute.

Invoke the renameNode method to attempt to rename an Element node of a XML1.0 document with a name that contains an invalid XML 1.0 character and check if a INVALID_CHARACTER_ERR gets thrown.

documentsetdocumenturi01

The setDocmentURI method set the location of the document.

Set the documentURI to a valid string and retreive the documentURI of this document and verify if it is was correctly set.

documentsetdocumenturi02

The setDocmentURI method set the location of the document.

Set the documentURI to null and retreive the documentURI of this document and verify if it is was set to null.

documentsetdocumenturi03

The setDocmentURI method set the location of the document.

Create a new document and set its documentURI to a valid string. Retreive the documentURI and verify if it is was correctly set.

documentsetstricterrorchecking01

The setStrictErrorChecking method set a boolean indicating if error checking has to be enforced or not. Set the strictErrorChecking attribute value on this documentNode to false and then to true. Call the createAttributeNS method on this document with an illegal character in the qualifiedName and check if the INVALID_CHARACTER_ERR is thrown.

documentsetstricterrorchecking02

The setStrictErrorChecking method set a boolean indicating if error checking has to be enforced or not. Set the strictErrorChecking attribute value on a new Document to true. Call the createAttributeNS method on this document with a a null namespaceURI and a qualified name with a prefix and check if the NAMESPACE_ERR is thrown.

documentsetstricterrorchecking03

The setStrictErrorChecking method set a boolean indicating if error checking has to be enforced or not. Set the strictErrorChecking attribute value on a new Document to false and check if it was correctly set using getStrictErrorChecking.

documentsetxmlversion01

The setXmlVersion method sets the version number attribute of the XML declaration.

set the value of the version attribute of the XML declaration of this document to various invalid characters and verify if a NOT_SUPPORTED_ERR is thrown.

documentsetxmlversion04

The setXmlVersion method sets the version number attribute of the XML declaration.

set the value of the version attribute of the XML declaration of this document to various invalid characters and verify if a NOT_SUPPORTED_ERR is thrown.

documentsetxmlversion05

The setXmlVersion method sets the version number attribute of the XML declaration.

Set the value of the version attribute of the XML declaration of a new document to "-" and check if a NOT_SUPPORTED_ERR is thrown.

domconfigurationcansetparameter01

The canSetParameter method checks if setting a parameter to a specific value is supported.

The parameter commments is turned on by default. Check to see if this feature can be set to false by invoking canSetParameter method. Also check that this method does not change the value of parameter.

domimplementationgetfeature03

The method getFeature returns a specialized object which implements the specialized APIs of the specified feature and version. This method also allow the implementation to provide specialized objects which do not support the DOMImplementation interface. If the DOMObject returned by this method implements the DOMImplementation interface, it must delegate to the primary core DOMImplementation and not return results inconsistent with the primary core DOMImplementation such as hasFeature, getFeature, etc. Invoke getFeature method on this DOMImplementation with the value of the feature parameter as Core and version as null. This should return a DOMImplementation object that's not null.

domimplementationgetfeature05

The method getFeature returns a specialized object which implements the specialized APIs of the specified feature and version. This method also allow the implementation to provide specialized objects which do not support the DOMImplementation interface. If the DOMObject returned by this method implements the DOMImplementation interface, it must delegate to the primary core DOMImplementation and not return results inconsistent with the primary core DOMImplementation such as hasFeature, getFeature, etc. Invoke getFeature method on this DOMImplementation with the value of the feature parameter as "" and version equal to null. This should return a null DOMObject.

domimplementationgetfeature06

The method getFeature returns a specialized object which implements the specialized APIs of the specified feature and version. This method also allow the implementation to provide specialized objects which do not support the DOMImplementation interface. If the DOMObject returned by this method implements the DOMImplementation interface, it must delegate to the primary core DOMImplementation and not return results inconsistent with the primary core DOMImplementation such as hasFeature, getFeature, etc. Invoke getFeature method on this DOMImplementation with the value of the feature parameter as "1-1" (some junk) and version equal to "*". This should return a null DOMObject.

doomstringlistgetlength01

The length attribute of the DOMStringList returns the number of DOMStrings in the list. The range of valid child node indices is 0 to length-1 inclusive.

Invoke the length on the list of parameters returned by the DOMConfiguration object. Verify that the list is not null and length is not 0.

elementsetidattribute01

The method setIdAttribute declares the attribute specified by name to be of type ID. If the value of the specified attribute is unique then this element node can later be retrieved using getElementById on Document. Note, however, that this simply affects this node and does not change any grammar that may be in use.

Invoke setIdAttribute on the third address element's street attribute. Verify by calling isID on the street attribute and getElementById on document. Invoke setIdAttribute again to reset. Calling isID should return false.

elementsetidattribute03

The method setIdAttribute declares the attribute specified by name to be of type ID. If the value of the specified attribute is unique then this element node can later be retrieved using getElementById on Document. Note, however, that this simply affects this node and does not change any grammar that may be in use.

First use setAttribute to change the street attribute of the third address element. Invoke setIdAttribute on the newly set attribute. Verify by calling isID on the new attribute and getElementById on document. Invoke setIdAttribute again to reset. Calling isID should return false.

elementsetidattribute04

The method setIdAttribute declares the attribute specified by name to be of type ID. If the value of the specified attribute is unique then this element node can later be retrieved using getElementById on Document. Note, however, that this simply affects this node and does not change any grammar that may be in use.

First use setAttribute to create a new attribute on the third name element. Invoke setIdAttribute on the new attribute. Verify by calling isID on the new attribute and getElementById on document. Invoke setIdAttribute again to reset. Calling isID should return false.

elementsetidattribute05

The method setIdAttribute declares the attribute specified by name to be of type ID. If the value of the specified attribute is unique then this element node can later be retrieved using getElementById on Document. Note, however, that this simply affects this node and does not change any grammar that may be in use.

Invoke setIdAttribute on the third name element with a non-existing attribute name. Verify that NOT_FOUND_ERR is raised.

elementsetidattribute06

The method setIdAttribute declares the attribute specified by name to be of type ID. If the value of the specified attribute is unique then this element node can later be retrieved using getElementById on Document. Note, however, that this simply affects this node and does not change any grammar that may be in use.

Invoke setIdAttribute on the third name element with an attribute name of the address element. Verify that NOT_FOUND_ERR is raised.

elementsetidattribute07

The method setIdAttribute declares the attribute specified by name to be of type ID. If the value of the specified attribute is unique then this element node can later be retrieved using getElementById on Document. Note, however, that this simply affects this node and does not change any grammar that may be in use.

First use setAttribute to create two new attribute of the second and third name element with different values. Invoke setIdAttribute on the new attributes. Verify by calling isID on the new attributes and getElementById with two different values on document.

elementsetidattribute08

The method setIdAttribute declares the attribute specified by name to be of type ID. If the value of the specified attribute is unique then this element node can later be retrieved using getElementById on Document. Note, however, that this simply affects this node and does not change any grammar that may be in use.

Invoke setIdAttribute street attribute on the second, thrid, and the fifth address element. Verify by calling isID on the attributes and getElementById with the unique value "No" on document.

elementsetidattribute09

The method setIdAttribute declares the attribute specified by name to be of type ID. If the value of the specified attribute is unique then this element node can later be retrieved using getElementById on Document. Note, however, that this simply affects this node and does not change any grammar that may be in use.

First use setAttribute to create two new attributes on the second name element and salary element. Invoke setIdAttribute on the new attributes. Verify by calling isID on the new attributes and getElementById with two different values on document.

elementsetidattribute10

The method setIdAttribute declares the attribute specified by name to be of type ID. If the value of the specified attribute is unique then this element node can later be retrieved using getElementById on Document. Note, however, that this simply affects this node and does not change any grammar that may be in use.

Invoke setIdAttribute on the third address element's street attribute consecutively with different isId values. Verify by calling isId on the attribute.

elementsetidattribute11

The method setIdAttribute declares the attribute specified by name to be of type ID. If the value of the specified attribute is unique then this element node can later be retrieved using getElementById on Document. Note, however, that this simply affects this node and does not change any grammar that may be in use.

Invoke setIdAttribute on the 4th address element's street attribute which contains an entity reference. Verify by calling isID on the street attribute and getElementById on document. Invoke setIdAttribute again to reset. Calling isID should return false.

elementsetidattributenode01

This method declares the attribute specified by node to be of type ID. If the value of the specified attribute is unique then this element node can later be retrieved using getElementById on Document. Note, however, that this simply affects this node and does not change any grammar that may be in use.

Invoke setIdAttributeNode on the 3rd employee element using the domestic attribute as a parameter . Verify by calling isID on the attribute node and getElementById on document node. Call setIdAttributeNode again with isId=false to reset. Invoke isId on the attribute node should return false.

elementsetidattributenode02

This method declares the attribute specified by node to be of type ID. If the value of the specified attribute is unique then this element node can later be retrieved using getElementById on Document. Note, however, that this simply affects this node and does not change any grammar that may be in use.

Invoke setIdAttributeNode on the 3rd address element using the street attribute as a parameter . Verify by calling isID on the attribute node and getElementById on document node. Call setIdAttributeNode again with isId=false to reset. Invoke isId on the attribute node should return false.

elementsetidattributenode03

This method declares the attribute specified by node to be of type ID. If the value of the specified attribute is unique then this element node can later be retrieved using getElementById on Document. Note, however, that this simply affects this node and does not change any grammar that may be in use.

Create a new attribute node on the second Name element. Invoke setIdAttributeNode on a newly created attribute node. Verify by calling isID on the attribute node and getElementById on document node. Call setIdAttributeNode again with isId=false to reset. Invoke isId on the attribute node should return false.

elementsetidattributenode04

This method declares the attribute specified by node to be of type ID. If the value of the specified attribute is unique then this element node can later be retrieved using getElementById on Document. Note, however, that this simply affects this node and does not change any grammar that may be in use.

Create a new namespace attribute on the second Name element. Invoke setIdAttributeNode on a newly created attribute node. Verify by calling isID on the attribute node and getElementById on document node. Call setIdAttributeNode again with isId=false to reset. Invoke isId on the attribute node should return false.

elementsetidattributenode05

This method declares the attribute specified by node to be of type ID. If the value of the specified attribute is unique then this element node can later be retrieved using getElementById on Document. Note, however, that this simply affects this node and does not change any grammar that may be in use.

Invoke setIdAttributeNode on the third name element but with the street attribute of the address element as a parameter. Verify that NOT_FOUND_ERR is raised.

elementsetidattributenode06

This method declares the attribute specified by node to be of type ID. If the value of the specified attribute is unique then this element node can later be retrieved using getElementById on Document. Note, however, that this simply affects this node and does not change any grammar that may be in use.

Invoke setIdAttributeNode on the third name element but with the domestic attribute of the address element as a parameter. Verify that NOT_FOUND_ERR is raised.

elementsetidattributenode07

This method declares the attribute specified by node to be of type ID. If the value of the specified attribute is unique then this element node can later be retrieved using getElementById on Document. Note, however, that this simply affects this node and does not change any grammar that may be in use.

Invoke setIdAttributeNode on the 2nd and 3rd address element using the street attribute as a parameter . Verify by calling isID on the attribute node and getElementById on document node.

elementsetidattributens01

Declares the attribute specified by local name and namespace URI to be of type ID. If the value of the specified attribute is unique then this element node can later be retrieved using getElementById on Document. Note, however, that this simply affects this node and does not change any grammar that may be in use.

Invoke setIdAttributeNS on an existing namespace attribute with a namespace URI and a qualified name. Verify by calling isId on the attribute node and getElementById on document node. Call setIdAttributeNS with isId=false to reset. isId should now return false.

elementsetidattributens02

Declares the attribute specified by local name and namespace URI to be of type ID. If the value of the specified attribute is unique then this element node can later be retrieved using getElementById on Document. Note, however, that this simply affects this node and does not change any grammar that may be in use.

Invoke setIdAttributeNS on an existing attribute with a namespace URI and a qualified name. Verify by calling isID on the attribute node and getElementById on document node. Assume the grammar has not defined any element of typeID. Call setIdAttributeNS with isId=false to reset. Method isId should now return false.

elementsetidattributens03

The method setIdAttributeNS declares the attribute specified by local name and namespace URI to be of type ID. If the value of the specified attribute is unique then this element node can later be retrieved using getElementById on Document.

Note, however, that this simply affects this node and does not change any grammar that may be in use.

Invoke setIdAttributeNS on a newly added namespace attribute on the first employeeId element. Verify by calling isID on the attribute node and getElementById on document node. Call setIdAttributeNS with isId=false to reset. Method isId should now return false.

elementsetidattributens06

The method setIdAttributeNS declares the attribute specified by local name and namespace URI to be of type ID. If the value of the specified attribute is unique then this element node can later be retrieved using getElementById on Document.

Note, however, that this simply affects this node and does not change any grammar that may be in use.

Invoke setIdAttributeNS on the third name element with a non-existing attribute name. Verify that NOT_FOUND_ERR is raised.

elementsetidattributens07

The method setIdAttributeNS declares the attribute specified by local name and namespace URI to be of type ID. If the value of the specified attribute is unique then this element node can later be retrieved using getElementById on Document.

Note, however, that this simply affects this node and does not change any grammar that may be in use.

Invoke setIdAttributeNS on the second employee element with a non-existing attribute. Verify that NOT_FOUND_ERR is raised.

elementsetidattributens08

The method setIdAttributeNS declares the attribute specified by local name and namespace URI to be of type ID. If the value of the specified attribute is unique then this element node can later be retrieved using getElementById on Document. Note, however, that this simply affects this node and does not change any grammar that may be in use. Invoke setIdAttributeNS on the second employee element with a non-existing attribute. Verify that NOT_FOUND_ERR is raised.

elementsetidattributens13

The method setIdAttributeNS declares the attribute specified by local name and namespace URI to be of type ID. If the value of the specified attribute is unique then this element node can later be retrieved using getElementById on Document.

Note, however, that this simply affects this node and does not change any grammar that may be in use.

Invoke setIdAttributeNS on newly added attribute on the third name element. Verify by calling isID on the attribute node and getElementById on document node. Call setIdAttributeNS on the same element to reset ID but with a non-existing attribute should generate NOT_FOUND_ERR

entitygetinputencoding01

The method getInputEncoding returns the attribute specifying the encoding used for this entity at the time of parsing, when it is an external parsed entity. This is null if it an entity from the internal subset or if it is not known.

Call the getInputEncoding method on a UTF-8 encoded document and check if the value returned is null for a internal general entity.

entitygetinputencoding02

The method getInputEncoding returns the attribute specifying the encoding used for this entity at the time of parsing, when it is an external parsed entity. This is null if it an entity from the internal subset or if it is not known.

Call the getInputEncoding method on a UTF-16 encoded document that contains an external unparsed entity and check if the value returned is null.

entitygetxmlencoding01

The method getXmlEncoding returns an attribute specifying, as part of the text declaration, the encoding of this entity, when it is an external parsed entity. This is null otherwise Call the getXmlEncoding method on a UTF-8 encoded entity of a document that is not an external parsed entity and check if the value returned is null.

entitygetxmlencoding02

The method getXmlEncoding returns an attribute specifying, as part of the text declaration, the encoding of this entity, when it is an external parsed entity. This is null otherwise Call the getencoding method on a UTF-16 encoded document that contains an external unparsed parsed entity and check if the value returned is null.

entitygetxmlversion01

The method getXmlVersion returns as part of the text declaration, the version of this entity, when it is an external parsed entity. This is null otherwise.

Call the getXmlVersion method on entity that is not an external entity and check if the value returned is null.

entitygetxmlversion02

The method getXmlVersion returns as part of the text declaration, the version of this entity, when it is an external parsed entity. This is null otherwise.

Call the getXmlVersion method on a UTF-16 encoded document that contains an external unparsed entity declaration and check if the value returned is null.

nodecomparedocumentposition01

The method compareDocumentPosition compares a node with this node with regard to their position in the document and according to the document order. Using compareDocumentPosition to check if a Document node contains and precedes its documentType and node and if the DocumentTypeNode is contained and follows its Document node.

nodecomparedocumentposition02

The method compareDocumentPosition compares a node with this node with regard to their position in the document and according to the document order. Using compareDocumentPosition to check if a Document node contains and precedes its new DocumentType and node and if the new DocumentType Node is contained and follows its Document node.

nodecomparedocumentposition03

The method compareDocumentPosition compares a node with this node with regard to their position in the document and according to the document order. Using compareDocumentPosition check if the document position of two Document nodes obtained from the same xml document is disconnected, implementation specific, and that the order of these two documents is reserved.

nodecomparedocumentposition04

The method compareDocumentPosition compares a node with this node with regard to their position in the document and according to the document order..

Using compareDocumentPosition to check that no flags are set in return when the document position of a Document node is compared with itself

nodecomparedocumentposition05

The method compareDocumentPosition compares a node with this node with regard to their position in the document and according to the document order.

Using compareDocumentPosition check if the document position of a Document and a new Document node are disconnected, implementation-specific and preceding/following.

nodecomparedocumentposition06

The method compareDocumentPosition compares a node with this node with regard to their position in the document and according to the document order. Using compareDocumentPosition check if the document position of a Document node contains and precedes its DocumentElement, and the DocumentElement is contained and follows the Document node.

nodecomparedocumentposition07

The method compareDocumentPosition compares a node with this node with regard to their position in the document and according to the document order. Using compareDocumentPosition check if the document compared contains and precedes the new newElement, and the newElement is contained and follows the document.

nodecomparedocumentposition08

The method compareDocumentPosition compares a node with this node with regard to their position in the document and according to the document order. Using compareDocumentPosition check if the Document node contains and precedes an Element, and the Element is contained and follows the Document node.

nodecomparedocumentposition09

The method compareDocumentPosition compares a node with this node with regard to their position in the document and according to the document order. Using compareDocumentPosition check if the Element node is contained and follows the appended Document node, and if the Document node contains and precedes the Element node.

nodecomparedocumentposition10

The method compareDocumentPosition compares a node with this node with regard to their position in the document and according to the document order. Using compareDocumentPosition check if the document node precedes and contains its default Attr node.

nodecomparedocumentposition11

The method compareDocumentPosition compares a node with this node with regard to their position in the document and according to the document order. Using compareDocumentPosition check if the Document node precedes and contains the Attr node.

nodecomparedocumentposition12

The method compareDocumentPosition compares a node with this node with regard to their position in the document and according to the document order. Using compareDocumentPosition to check if a new ProcessingInstruction node is contained and follows the Document node, and that the Document node contains and precedes the ProcessingInstruction node.

nodecomparedocumentposition13

The method compareDocumentPosition compares a node with this node with regard to their position in the document and according to the document order. Using compareDocumentPosition check if the Document node contains and precedes the new Comment node, and if the Comment node is contained and follows the Document node.

nodecomparedocumentposition14

The method compareDocumentPosition compares a node with this node with regard to their position in the document and according to the document order. Using compareDocumentPosition check if the DocumentFragment node contains and precedes an Element node appended to it, and that the Element node is contained and follows the DocumentFragment node.

nodecomparedocumentposition15

The method compareDocumentPosition compares a node with this node with regard to their position in the document and according to the document order.

Using compareDocumentPosition check if the Element node precedes and contains its Attr child, and that the Attr child is contained and follows the Element node.

nodecomparedocumentposition16

The method compareDocumentPosition compares a node with this node with regard to their position in the document and according to the document order.

Using compareDocumentPosition check if the document position of a DocumentFragment node compared with a cloned Attr node is disconnected and implementation specific, and that the order between these two nodes is preserved.

nodecomparedocumentposition17

The method compareDocumentPosition compares a node with this node with regard to their position in the document and according to the document order.

Using compareDocumentPosition check if the document position of the first ProcessingInstruction node compared to this second newly apended ProcessingInstruction node is PRECEDING, and FOLLOWING vice versa.

nodecomparedocumentposition18

The method compareDocumentPosition compares a node with this node with regard to their position in the document and according to the document order.

Using compareDocumentPosition check if the document position of the first new Text node compared to the second text node is PRECEDING and is FOLLOWING vice versa.

nodecomparedocumentposition20

The method compareDocumentPosition Compares a node with this node with regard to their position in the document and according to the document order. This order can be extended by module that define additional types of nodes.

Using compareDocumentPosition check if the document position of the first Text node of the second element whose localName is name compared with the next CDATASection node is PRECEDING and FOLLOWING vice versa.

nodecomparedocumentposition21

The method compareDocumentPosition compares a node with this node with regard to their position in the document and according to the document order.

Using compareDocumentPosition check the document position of the text node of the fist and second elements whose localName is name. The first text node should return FOLLOWING and the second text node should return PRECEDING when compareDocumentPosition is invoked with the other node as a parameter.

nodecomparedocumentposition22

The method compareDocumentPosition compares a node with this node with regard to their position in the document and according to the document order.

Using compareDocumentPosition check if the Entity node precedes the Notation node and the Notation node follows the Entity node.

nodecomparedocumentposition23

The method compareDocumentPosition compares a node with this node with regard to their position in the document and according to the document order.

Using compareDocumentPosition check if the document position of an Entity node compared to another Entity node following it in DocumentType is implementation specific and preceding

nodecomparedocumentposition24

The method compareDocumentPosition compares a node with this node with regard to their position in the document and according to the document order.

Using compareDocumentPosition check if the return value of document position of a Notation node compared to another that is the same is not flagged.

nodecomparedocumentposition25

The method compareDocumentPosition compares a node with this node with regard to their position in the document and according to the document order.

Using compareDocumentPosition check if the EntityReference node is contained and follows its parent Element node, and that the Element node contains and precedes the EntityReference node.

nodecomparedocumentposition26

The method compareDocumentPosition compares a node with this node with regard to their position in the document and according to the document order.

Using compareDocumentPosition check if the EntityReference node contains and precedes it's first childElement, and that the childElement is contained and follows the EntityReference node.

nodecomparedocumentposition27

The method compareDocumentPosition compares a node with this node with regard to their position in the document and according to the document order.

Using compareDocumentPosition to check if the EntityReference node contains and precedes it's last childElement, and that this childElement is contained and follows the EntityReference node.

nodecomparedocumentposition28

The method compareDocumentPosition compares a node with this node with regard to their position in the document and according to the document order.

Using compareDocumentPosition check the document position of the EntityReference node ent4's first child and last child. Invoke compareDocumentPositon on first child with last child as a parameter should return FOLLOWING, and should return PRECEDING vice versa.

nodecomparedocumentposition29

The method compareDocumentPosition compares a node with this node with regard to their position in the document and according to the document order.

Create two entity reference nodes. Using compareDocumentPosition to check if the child of the first Entity Ref node precedes the child of the second Entity Ref node, and that the child of the second Entity Ref node follows the child of the first Entity Ref node.

nodecomparedocumentposition30

The method compareDocumentPosition compares a node with this node with regard to their position in the document and according to the document order.

Using compareTreePosition check if comparedocumentposition invoked on the first name with the first position node as a parameter returns FOLLOWING.

nodecomparedocumentposition31

The method compareDocumentPosition compares a node with this node with regard to their position in the document and according to the document order.

Using compareDocumentPosition to check if invoking the method on the first name node with a new node appended to the second position node as a parameter is FOLLOWING, and is PRECEEDING vice versa

nodecomparedocumentposition32

The method compareDocumentPosition compares a node with this node with regard to their position in the document and according to the document order.

Using compareDocumentPosition to check if the document position returned by comparing the first name with a first position node of another document reference and adopted by the first as a parameter is FOLLOWING.

nodecomparedocumentposition33

The method compareDocumentPosition compares a node with this node with regard to their position in the document and according to the document order.

Create a new Element node, add a new atttribute node to it. Compare the position of the Element and the Document. This should return disconnected, implementation specific, and that the order of these two nodes is preserved. Also compare the position of the Element node with respect to the Attr node and this should be preceding and contains, and the Attr node follows and is contained by the Element node

nodecomparedocumentposition34

The method compareDocumentPosition compares a node with this node with regard to their position in the document and according to the document order.

Create a new Element node, add new Text, Element and Porcessing Instruction nodes to it. Using compareDocumentPosition, compare the position of the Element with respect to the Text and the Text with respect to the Processing Instruction.

nodecomparedocumentposition35

The method compareDocumentPosition compares a node with this node with regard to their position in the document and according to the document order.

Using compareDocumentPosition to check if the Element contains and precedes its default attribute and that the attribute follows and iscontained by the Element

nodecomparedocumentposition36

The method compareDocumentPosition compares a node with this node with regard to their position in the document and according to the document order.

Using compareDocumentPosition to check if the document position of an Attribute compared with the element that follows its parent as a parameter is FOLLOWING, and is PRECEDING vice versa.

nodecomparedocumentposition37

The method compareDocumentPosition compares a node with this node with regard to their position in the document and according to the document order.

Using compareDocumentPosition to check if the document position of the first street attribute of the element address when compared with the elements text content as a parameter is is FOLLOWING, and is PRECEDING vice versa.

nodecomparedocumentposition38

The method compareDocumentPosition compares a node with this node with regard to their position in the document and according to the document order.

Using compareDocumentPosition to check if the street's attribute contains and precedes it's content, and the content node is contained and follows the attribute node.

nodecomparedocumentposition39

The method compareDocumentPosition compares a node with this node with regard to their position in the document and according to the document order.

Using compareDocumentPosition to check if the document position of the street's attribute when compared with the local1 attribute node is implementation_specific and preceding

nodecomparedocumentposition40

The method compareDocumentPosition compares a node with this node with regard to their position in the document and according to the document order.

Using compareDocumentPosition to check if the document position of the street's attribute when compared with a new attribute node is implementation_specific

nodegetbaseuri01

The getBaseURI attribute returns the absolute base URI of this node or null if undefined.

Using getBaseURI check if the baseURI attribute of this Document node is not null.??? A document node should be contained in the DocumentEntity and the baseURI of the documentEntity should not be null so I guess this too should not be null.

nodegetbaseuri02

The getBaseURI attribute returns the absolute base URI of this node or null if undefined.

Using getBaseURI check if the baseURI attribute of a new Document node is null.

nodegetbaseuri03

The getBaseURI attribute returns the absolute base URI of this node or null if undefined.

Using getBaseURI check if the baseURI attribute of this DocType node is null.??? A document node should be contained in the DocumentEntity and the baseURI of the documentEntity should not be null so I guess this too should not be null.

nodegetbaseuri04

The getBaseURI attribute returns the absolute base URI of this node or null if undefined.

Using getBaseURI check if the baseURI attribute of this DocumentElement is not null.???

nodegetbaseuri05

The getBaseURI attribute returns the absolute base URI of this node or null if undefined.

Using getBaseURI check if the baseURI attribute of this DocumentElement is http://www.w3.org/DOM/L3Test.

nodegetbaseuri06

The getBaseURI attribute returns the absolute base URI of this node or null if undefined.

Create a new Element in this document. Since its baseURI should be the baseURI of the Document Entity which I assume is not null, using getBaseURI check if the baseURI attribute of this Element node is not null.???

nodegetbaseuri07

The getBaseURI attribute returns the absolute base URI of this node or null if undefined.

Append as a child of this documentElement a new Element. Using getBaseURI check if the baseURI attribute of the new Element node is "'http://www.w3.org/DOM/L3Test".

nodegetbaseuri09

The getBaseURI attribute returns the absolute base URI of this node or null if undefined.

Using getBaseURI check if the baseURI attribute of an element node having the xml:base attribute specified on it as well as its parent.

nodegetbaseuri10

The getBaseURI attribute returns the absolute base URI of this node or null if undefined.

Append as a child of this documentElement a new Processing Instruction. Using getBaseURI check if the baseURI attribute of the new Processing Instruction node is "'http://www.w3.org/DOM/L3Test".

nodegetbaseuri11

The getBaseURI attribute returns the absolute base URI of this node or null if undefined.

Import a new Processing Instruction of a new Document into this Document. Using getBaseURI check if the baseURI attribute of the new Processing Instruction node is not null .

nodegetbaseuri12

The getBaseURI attribute returns the absolute base URI of this node or null if undefined.

Using getBaseURI verify if the entity ent5 is not null.

nodegetbaseuri13

The getBaseURI attribute returns the absolute base URI of this node or null if undefined.

Using getBaseURI verify if the notation notation1 is not null.

nodegetbaseuri14

The getBaseURI attribute returns the absolute base URI of this node or null if undefined.

Using getBaseURI verify if the imported notation notation2 is not null.

nodegettextcontent01

The method getTextContent returns the text content of this node and its descendants Using getTextContent on this Document node check if the value returned is Null .

nodegettextcontent02

The method getTextContent returns the text content of this node and its descendants Using getTextContent on a new Document node check if the value returned is Null .

nodegettextcontent03

The method getTextContent returns the text content of this node and its descendants Using getTextContent on this DocumentType node check if the value returned is Null .

nodegettextcontent04

The method getTextContent returns the text content of this node and its descendants Using getTextContent on a new DocumentType node check if the value returned is Null.

nodegettextcontent05

The method getTextContent returns the text content of this node and its descendants Using getTextContent on this DocumentType node check if the value returned is Null .

nodegettextcontent13

The method getTextContent returns the text content of this node and its descendants.

Invoke the method getTextContent on an existing Element node with Text and CDATA content and check if the value returned is a single concatenated String with its content.

nodegettextcontent14

The method getTextContent returns the text content of this node and its descendants.

Invoke the method getTextContent on an existing Element node with Child Element, Text EntityReferences and Attributes and check if the value returned is a single concatenated String with its content.

nodegettextcontent17

The method getTextContent returns the text content of this node and its descendants.

Invoke the method getTextContent on a new EntityReference node and check if the value returned is the EntityReference's content.

nodegettextcontent18

The method getTextContent returns the text content of this node and its descendants.

Invoke the method getTextContent on an Entity node and check if the value returned is its replacement text.

nodeinsertbefore15

The method insertBefore inserts the node newChild before the existing child node refChild. If refChild is null, insert newChild at the end of the list of children. A NO_MODIFICATION_ALLOWED_ERR is raised if the node is read-only.

Using insertBefore on a new EntityReference node attempt to insert Element, Text, Comment, ProcessingInstruction and CDATASection nodes before an element child and verify if a NO_MODIFICATION_ALLOWED_ERR is thrown.

nodeinsertbefore25

The method insertBefore inserts the node newChild before the existing child node refChild. If refChild is null, insert newChild at the end of the list of children.

Using insertBefore on a child Element of an EntityReference node attempt to insert a new Element node, before a Text node child of an Entity Node's replacement text and verify if a NO_MODIFICATION_ALLOWED_ERR is raised.

nodeisdefaultnamespace01

The method isDefaultNamespace checks if the specified namespaceURI is the default namespace or not.

Using isDefaultNamespace on this Document node with the value of the namespaceURI parameter as null check if the value returned is true.

nodeisdefaultnamespace02

The method isDefaultNamespace checks if the specified namespaceURI is the default namespace or not.

Using isDefaultNamespace on on a new Document node with the value of the namespaceURI parameter equal to the namespaceURI of the newly createdd Document and check if the value returned is false.

nodeisdefaultnamespace03

The method isDefaultNamespace checks if the specified namespaceURI is the default namespace or not.

Using isDefaultNamespace on this DocumentType node with the value of the namespaceURI parameter as null check if the value returned is false.

nodeisdefaultnamespace04

The method isDefaultNamespace checks if the specified namespaceURI is the default namespace or not.

Using isDefaultNamespace on a Notation and Entity node with the value of the namespaceURI parameter as null check if the value returned is false.

nodeisdefaultnamespace05

The method isDefaultNamespace checks if the specified namespaceURI is the default namespace or not.

Using isDefaultNamespace on a DocumentElement of a new Document node with the value of the namespaceURI parameter equal to the namespaceURI of the newly createdd Document and check if the value returned is false.

nodeisdefaultnamespace06

The method isDefaultNamespace checks if the specified namespaceURI is the default namespace or not.

Using isDefaultNamespace on an Element node with no prefix, which has a namespace attribute declaration with and without a namespace prefix and check if isDefaultNamespace returns true with the namespaceURI that does not have a prefix as its parameter.

nodeisdefaultnamespace07

The method isDefaultNamespace checks if the specified namespaceURI is the default namespace or not.

Using isDefaultNamespace on the child of an Element node with no prefix, which has a namespace attribute declaration with and without a namespace prefix and check if isDefaultNamespace returns true with the namespaceURI that does not have a prefix as its parameter.

nodeisdefaultnamespace08

The method isDefaultNamespace checks if the specified namespaceURI is the default namespace or not.

Using isDefaultNamespace on an Element node with a prefix, which has a namespace attribute declaration with a namespace prefix and check if isDefaultNamespace returns false with this namespaceURI as its parameter.

nodeisdefaultnamespace09

The method isDefaultNamespace checks if the specified namespaceURI is the default namespace or not.

Using isDefaultNamespace on a new Child of a new Element node with a namespace URI and prefix and using the parents namespace URI as an argument, verify if the value returned is false.

nodeisdefaultnamespace10

The method isDefaultNamespace checks if the specified namespaceURI is the default namespace or not.

Using isDefaultNamespace on a new Child of a new Element node with a namespace URI and prefix and using the childs namespace URI as an argument, verify if the value returned is true.

nodeisdefaultnamespace11

The method isDefaultNamespace checks if the specified namespaceURI is the default namespace or not.

Using isDefaultNamespace on an imported new Element node with a namespace URI and prefix in a new Document and using the parents namespace URI as an argument, verify if the value returned is true.

nodeisdefaultnamespace13

The method isDefaultNamespace checks if the specified namespaceURI is the default namespace or not.

Using isDefaultNamespace on a Element's new Text node, which has a namespace attribute declaration without a namespace prefix in its parent Element node and verify if the value returned is true.

nodeisdefaultnamespace14

The method isDefaultNamespace checks if the specified namespaceURI is the default namespace or not.

Using isDefaultNamespace on a Element's new CDATASection node, which has a namespace attribute declaration without a namespace prefix in its parent Element node and verify if the value returned is true.

nodeisdefaultnamespace15

The method isDefaultNamespace checks if the specified namespaceURI is the default namespace or not.

Using isDefaultNamespace on a Element's new cloned Comment node, which has a namespace attribute declaration without a namespace prefix in its parent Element node and verify if the value returned is true.

nodeisdefaultnamespace16

The method isDefaultNamespace checks if the specified namespaceURI is the default namespace or not.

Using isDefaultNamespace on a new Attribute node with with a namespace URI and no prefix and verify if the value returned is false since default namespaces do not apply directly to attributes.

nodeisequalnode01

The method isEqualNode returns whether this node is the same node as the given one.

Using isEqualNode check if 2 Document nodes created by parsing the same xml document are equal.

nodeisequalnode02

The method isEqualNode returns whether this node is the same node as the given one.

Using isEqualNode check if 2 newly created Document nodes having the same namespaceURI and qualifiedName are equal.

nodeisequalnode03

The method isEqualNode returns whether this node is the same node as the given one.

Using isEqualNode check if 2 Document nodes created by parsing the same xml document, one encoded in UTF-8 and the other in UTF16 are not equal. In this case since the DTD's are different, the public Id's are different.

nodeisequalnode04

The method isEqualNode returns whether this node is the same node as the given one.

Create a new Element node in this Document. return its ownerDocument and check if the the ownerDocument is equal to this Document using isEqualNode.

nodeisequalnode05

The method isEqualNode returns whether this node is the same node as the given one.

Using isEqualNode check if 2 Document nodes created by parsing different xml document are equal.

nodeisequalnode06

The method isEqualNode returns whether this node is the same node as the given one.

Using isEqualNode check if 2 Element nodes having the same nodeName and namespaceURI attribute are equal.

nodeisequalnode07

The method isEqualNode returns whether this node is the same node as the given one.

Using isEqualNode check if 2 Element nodes having the same nodeName and namespaceURI attribute created by two different Document objects obtained by parsing the same xml document are equal.

nodeisequalnode08

The method isEqualNode returns whether this node is the same node as the given one.

Retreive an element node of this Document having nodeName as employeeId and namespaceURI as http://www.nist.gov. Create a new Element node having the same attributes in this Document and using isEqualNode check if 2 Element nodes are equal.

nodeisequalnode09

The method isEqualNode returns whether this node is the same node as the given one.

Retreive an element node of this Document having nodeName as employeeId and namespaceURI as http://www.nist.gov. Create a new Element node having the same attributes in a new Document and using isEqualNode check if 2 Element nodes are not equal since their baseURIs will not be equal.

nodeisequalnode10

The method isEqualNode returns whether this node is the same node as the given one.

Retreive 2 element nodes of this Document having the nodeName employeeId and namespaceURI http://www.nist.gov and different child nodeLists. Using isEqualNode check if nodes are not equal.

nodeisequalnode11

The method isEqualNode returns whether this node is the same node as the given one.

Retreive the first element node whose localName is employee. Import it into a new Document with deep=false. Using isEqualNode check if the original and the imported Element Node are not equal. Now import it once more with deep=false and using isEqual verify if they are not equal, since the baseURI's will not be the same.

nodeisequalnode12

The method isEqualNode returns whether this node is the same node as the given one.

Using isEqual verify if the 2 documentElement nodes of different documents created by parsing the same xml document are equal.

nodeisequalnode13

The method isEqualNode returns whether this node is the same node as the given one.

Retreive the first element node whose localName is employee. Import it into a new Document with deep=false. Using isEqualNode check if the original and the imported Element Node are not equal. Now import it once more with deep=true and using isEqual verify if they are now equal.

nodeisequalnode14

The method isEqualNode returns whether this node is the same node as the given one.

Using isEqualNode check if 2 Attr nodes having the same nodeName and a null namespaceURI attribute, one created using createAttribute and the other createAttributeNS, are not equal. Note the localName for an Attr created with DOM Level 1 methods is null.

nodeisequalnode15

The method isEqualNode returns whether this node is the same node as the given one.

Using isEqualNode check if 2 Attr nodes having the same nodeName and a null namespaceURI attribute, one created using createAttributeNS and the other retreived from this document are equal.

nodeisequalnode16

The method isEqualNode returns whether this node is the same node as the given one.

Using isEqualNode check if a default attribute node and a cloned default attribute node are equal.

nodeisequalnode17

The method isEqualNode returns whether this node is the same node as the given one.

Using isEqualNode check if a new Attr node created in this Document is equal to the imported node returned when it is imported into a new Document.

nodeisequalnode18

The method isEqualNode returns whether this node is the same node as the given one.

Using isEqualNode check if a new Attr node created in this Document is equal to the attr node adopted by a new document.

nodeisequalnode19

The method isEqualNode returns whether this node is the same node as the given one.

Using isEqualNode check if 2 Attr nodes having the same nodeName but different namespaceURIs are not equal.

nodeisequalnode20

The method isEqualNode returns whether this node is the same node as the given one.

Using isEqualNode check if an Element and an Attr nodes having the same nodeName and namsepaceURI are not equal.

nodeisequalnode21

The method isEqualNode returns whether this node is the same node as the given one.

Using isEqualNode check if 2 DocumentType nodes returned by parsing the same xml document are equal.

nodeisequalnode22

The method isEqualNode returns whether this node is the same node as the given one.

Using isEqualNode check if 2 new DocumentType having null public and system ids are equal.

nodeisequalnode25

The method isEqualNode returns whether this node is the same node as the given one.

Using isEqualNode check if 2 EntityNode having the same name of two DocumentType nodes returned by parsing the same xml document are equal.

nodeisequalnode26

The method isEqualNode returns whether this node is the same node as the given one.

Using isEqualNode check if 2 NotationNode having the same name of two DocumnotationType nodes returned by parsing the same xml documnotation are equal.

nodeisequalnode27

The method isEqualNode returns whether this node is the same node as the given one.

Using isEqualNode check if 2 EntityNode having the same name of two DocumentType nodes returned by parsing the same xml document are equal.

nodeisequalnode28

The method isEqualNode returns whether this node is the same node as the given one.

Using isEqualNode check if 2 new Text nodes having null text are equal and two others having different data are not equal.

nodeisequalnode29

The method isEqualNode returns whether this node is the same node as the given one.

Using isEqualNode check if 2 new Comment nodes having the same data are equal and two others having different data are not equal.

nodeisequalnode31

The method isEqualNode returns whether this node is the same node as the given one.

Using isEqualNode check if 2 new CDATASection nodes having the same data are equal and two others having different data are not equal.

nodeisequalnode32

The method isEqualNode returns whether this node is the same node as the given one.

Using isEqualNode check if 2 new ProcessingInstruction nodes having the same data are equal and two others having different data are not equal.

nodelookupnamespaceuri01

The method lookupNamespaceURI returns the namespace URI associated to the given prefix, starting from this node.

Using lookupNamespaceURI on this Document node check if the value returned is Null .

nodelookupnamespaceuri02

The method lookupNamespaceURI returns the namespace URI associated to the given prefix, starting from this node.

Using lookupNamespaceURI on a new Document node with a namespaceURI and prefix and check if the value returned is the same namespaceURI.

nodelookupnamespaceuri03

The method lookupNamespaceURI returns the namespace URI associated to the given prefix, starting from this node.

Using lookupNamespaceURI on this DocumentType node check if the value returned is Null .

nodelookupnamespaceuri04

The method lookupNamespaceURI returns the namespace URI associated to the given prefix, starting from this node.

Using lookupNamespaceURI on an Entity and Notation node and check if the value returned is Null .

nodelookupnamespaceuri05

The method lookupNamespaceURI returns the namespace URI associated to the given prefix, starting from this node.

Using lookupNamespaceURI on the DocumentElement node of a new document with a namespaceURI and prefix and check if the namespaceURI value returned is valid.

nodelookupnamespaceuri06

The method lookupNamespaceURI returns the namespace URI associated to the given prefix, starting from this node.

Invoke lookupNamespaceURI on an Element node with no prefix, which has a namespace attribute declaration with a namespace prefix and check if the value of the namespaceURI returned by using its prefix as a parameter is valid.

nodelookupnamespaceuri07

The method lookupNamespaceURI returns the namespace URI associated to the given prefix, starting from this node.

Invoke lookupNamespaceURI on an Element node with no prefix, which has a namespace attribute declaration with a namespace prefix in its parent Element node and check if the value of the namespaceURI returned by using its prefix as a parameter is valid.

nodelookupnamespaceuri08

The method lookupNamespaceURI returns the namespace URI associated to the given prefix, starting from this node.

Invoke lookupNamespaceURI on an Element node with no prefix, which has 2 namespace attribute declarations with and without namespace prefices and check if the value of the prefix returned by using a valid prefix and an empty prefix as a parameter is a valid namespaceURI or null.

nodelookupnamespaceuri09

The method lookupNamespaceURI returns the namespace URI associated to the given prefix, starting from this node.

Invoke lookupNamespaceURI on an Element node with no prefix, whose parent has no prefix and 2 namespace attribute declarations with and without namespace prefices and check if the value of the namespaceURI returned by using each prefix as a parameter is valid.

nodelookupnamespaceuri10

The method lookupNamespaceURI returns the namespace URI associated to the given prefix, starting from this node.

Invoke lookupNamespaceURI on a new Child of a new Element node with a namespace URI and prefix and using the parents prefix as an argument, verify if the namespaceURI returned is a valid namespaceURI for the parent.

nodelookupnamespaceuri11

The method lookupNamespaceURI returns the namespace URI associated to the given prefix, starting from this node.

Invoke lookupNamespaceURI on an imported new Element node with a namespace URI and prefix in a new Document and using the parents prefix as an argument, verify if the namespaceURI returned is a valid namespaceURI of the parent.

nodelookupnamespaceuri13

The method lookupNamespaceURI returns the namespace URI associated to the given prefix, starting from this node.

Invoke lookupNamespaceURI on a Element's new Text node, which has a namespace attribute declaration with a namespace prefix in its parent Element node and check if the value of the namespaceURI returned by using its prefix as a parameter is valid.

nodelookupnamespaceuri14

The method lookupNamespaceURI returns the namespace URI associated to the given prefix, starting from this node.

Invoke lookupNamespaceURI on a Element's new Text node, which has a namespace attribute declaration with a namespace prefix in its parent Element node and check if the value of the namespaceURI returned by using its prefix as a parameter is valid.

nodelookupnamespaceuri15

The method lookupNamespaceURI returns the namespace URI associated to the given prefix, starting from this node.

Invoke lookupNamespaceURI on a Element's new Comment node, which has a namespace attribute declaration with a namespace prefix in its parent Element node and check if the value of the namespaceURI returned by using its prefix as a parameter is valid.

nodelookupnamespaceuri16

The method lookupNamespaceURI returns the namespace URI associated to the given prefix, starting from this node.

Invoke lookupNamespaceURI on a new Attribute node with with a namespace URI and prefix and verify if the namespaceURI returned is null.

nodelookupnamespaceuri17

The method lookupNamespaceURI returns the namespace URI associated to the given prefix, starting from this node.

Invoke lookupNamespaceURI on the domestic attribute node of the address node with a namsepaceURI and a node prefix and check if the value of the namespaceURI returned by using its prefix as a parameter is valid.

nodelookupnamespaceuri18

The method lookupNamespaceURI returns the namespace URI associated to the given prefix, starting from this node.

Invoke lookupNamespaceURI on the default attribute node of the employee node with a namsepaceURI and a node prefix and check if the value of the namespaceURI returned by using its prefix as a parameter is valid.

nodelookupnamespaceuri19

The method lookupNamespaceURI returns the namespace URI associated to the given prefix, starting from this node.

Invoke lookupNamespaceURI on the an attribute node without a namespace prefix of an Element node that has a namespaceURI and prefix, and check if the value of the namespaceURI returned by using the Elements prefix as a parameter is valid.

nodelookupnamespaceuri20

The method lookupNamespaceURI returns the namespace URI associated to the given prefix, starting from this node.

Invoke lookupNamespaceURI on the an attribute node without a namespace prefix of an Element node that has a namespaceURI and prefix, and check if the value of the namespaceURI returned by using the Elements prefix as a parameter is valid.

nodelookupprefix01

The method lookupPrefix looks up the prefix associated to the given namespace URI, starting from this node. The default namespace declarations are ignored by this method.

Using lookupPrefix on this Document node check if the value returned is Null .

nodelookupprefix02

The method lookupPrefix looks up the prefix associated to the given namespace URI, starting from this node. The default namespace declarations are ignored by this method.

Using lookupPrefix on a new Document node with a namespaceURI and prefix and check if the value returned is the same prefix.

nodelookupprefix03

The method lookupPrefix looks up the prefix associated to the given namespace URI, starting from this node. The default namespace declarations are ignored by this method.

Using lookupPrefix on this DocumentType node check if the value returned is Null .

nodelookupprefix04

The method lookupPrefix looks up the prefix associated to the given namespace URI, starting from this node. The default namespace declarations are ignored by this method.

Using lookupPrefix on an Entity and Notation node and check if the value returned is Null .

nodelookupprefix05

The method lookupPrefix looks up the prefix associated to the given namespace URI, starting from this node. The default namespace declarations are ignored by this method.

Using lookupPrefix on the DocumentElement node of a new document with a namespaceURI and prefix and check if the prefix value returned is valid.

nodelookupprefix06

The method lookupPrefix looks up the prefix associated to the given namespace URI, starting from this node. The default namespace declarations are ignored by this method.

Invoke lookupPrefix on an Element node with no prefix, which has a namespace attribute declaration with a namespace prefix and check if the value of the prefix returned by using its namespaceURI as a parameter is valid.

nodelookupprefix07

The method lookupPrefix looks up the prefix associated to the given namespace URI, starting from this node. The default namespace declarations are ignored by this method.

Invoke lookupPrefix on an Element node with no prefix, which has a namespace attribute declaration with a namespace prefix in its parent Element node and check if the value of the prefix returned by using its namespaceURI as a parameter is valid.

nodelookupprefix08

The method lookupPrefix looks up the prefix associated to the given namespace URI, starting from this node. The default namespace declarations are ignored by this method.

Invoke lookupPrefix on an Element node with no prefix, which has 2 namespace attribute declarations with and without namespace prefices and check if the value of the prefix returned by using each namespaceURI as a parameter is valid.

nodelookupprefix09

The method lookupPrefix looks up the prefix associated to the given namespace URI, starting from this node. The default namespace declarations are ignored by this method.

Invoke lookupPrefix on an Element node with no prefix, whose parent has no prefix and 2 namespace attribute declarations with and without namespace prefices and check if the value of the prefix returned by using each namespaceURI as a parameter is valid.

nodelookupprefix10

The method lookupPrefix looks up the prefix associated to the given namespace URI, starting from this node. The default namespace declarations are ignored by this method.

Invoke lookupPrefix on a new Child of a new Element node with a namespace URI and prefix and using the parents namespace URI as an argument, verify if the prefix returned is a valid prefix of the parent.

nodelookupprefix11

The method lookupPrefix looks up the prefix associated to the given namespace URI, starting from this node. The default namespace declarations are ignored by this method.

Invoke lookupPrefix on an imported new Element node with a namespace URI and prefix in a new Document and using the parents namespace URI as an argument, verify if the prefix returned is a valid prefix of the parent.

nodelookupprefix12

The method lookupPrefix looks up the prefix associated to the given namespace URI, starting from this node. The default namespace declarations are ignored by this method.

Invoke lookupPrefix on an renamed new Element node with a namespace URI and prefix in a new Document and using the parents namespace URI as an argument, verify if the prefix returned is a valid prefix of the parent.

nodelookupprefix13

The method lookupPrefix looks up the prefix associated to the given namespace URI, starting from this node. The default namespace declarations are ignored by this method.

Invoke lookupPrefix on a Element's new Text node, which has a namespace attribute declaration with a namespace prefix in its parent Element node and check if the value of the prefix returned by using its namespaceURI as a parameter is valid.

nodelookupprefix14

The method lookupPrefix looks up the prefix associated to the given namespace URI, starting from this node. The default namespace declarations are ignored by this method.

Invoke lookupPrefix on a Element's new CDATA node, which has a namespace attribute declaration with a namespace prefix in its parent Element node and check if the value of the prefix returned by using its namespaceURI as a parameter is valid.

nodelookupprefix15

The method lookupPrefix looks up the prefix associated to the given namespace URI, starting from this node. The default namespace declarations are ignored by this method.

Invoke lookupPrefix on a Element's new Comment node, which has a namespace attribute declaration with a namespace prefix in its parent Element node and check if the value of the prefix returned by using its namespaceURI as a parameter is valid.

nodelookupprefix16

The method lookupPrefix looks up the prefix associated to the given namespace URI, starting from this node. The default namespace declarations are ignored by this method.

Invoke lookupPrefix on a new Attribute node with with a namespace URI and prefix and verify if the prefix returned is null.

nodelookupprefix17

The method lookupPrefix looks up the prefix associated to the given namespace URI, starting from this node. The default namespace declarations are ignored by this method.

Invoke lookupPrefix on the domestic attribute node of the address node with a namsepaceURI and a node prefix and check if the value of the prefix returned by using its namespaceURI as a parameter is valid.

nodelookupprefix18

The method lookupPrefix looks up the prefix associated to the given namespace URI, starting from this node. The default namespace declarations are ignored by this method.

Invoke lookupPrefix on the default attribute node of the employee node with a namsepaceURI and a node prefix and check if the value of the prefix returned by using its namespaceURI as a parameter is valid.

nodelookupprefix19

The method lookupPrefix looks up the prefix associated to the given namespace URI, starting from this node. The default namespace declarations are ignored by this method.

Invoke lookupPrefix on the an attribute node without a namespace prefix of an Element node that has a namespaceURI and prefix, and check if the value of the prefix returned by using the Elements namespaceURI as a parameter is valid.

nodelookupprefix20

The method lookupPrefix looks up the prefix associated to the given namespace URI, starting from this node. The default namespace declarations are ignored by this method.

Invoke lookupPrefix on the an attribute node without a namespace prefix of an Element node that has a namespaceURI and prefix, and check if the value of the prefix returned by using the Elements namespaceURI as a parameter is valid.

noderemovechild05

The method removeChild removes the child node indicated by oldChild from the list of children, and returns it.

Using removeChild on this Document node attempt to remove a new DocumentType node and verify if the DocumentType node is null. Now try the reverse and a NOT_FOUND_ERR should be thrown.

noderemovechild07

The method removeChild removes the child node indicated by oldChild from the list of children, and returns it.

Using removeChild on this Document node attempt to remove an Entity node and verify if a NOT_FOUND_ERR gets thrown.

noderemovechild13

The method removeChild removes the child node indicated by oldChild from the list of children, and returns it.

Using removeChild on a new EntityReference node attempt to remove the first child of this node and verify if a NO_MODIFICATION_ALLOWED_ERR is thrown.

noderemovechild14

The method removeChild removes the child node indicated by oldChild from the list of children, and returns it.

Using removeChild on a new EntityReference node attempt to remove its last ProcessingInstruction child node and verify if a NO_MODIFICATION_ALLOWED_ERR is thrown.

noderemovechild15

The method removeChild removes the child node indicated by oldChild from the list of children, and returns it.

Using removeChild on a new EntityReference node attempt to remove an Element child and verify if a NO_MODIFICATION_ALLOWED_ERR is thrown.

noderemovechild19

The method removeChild removes the child node indicated by oldChild from the list of children, and returns it.

Using removeChild on the first 'employee' Element node attempt to remove a EntityReference node child and verify the nodeName of the returned node that was removed. Now attempt the reverse and verify if a NO_MODIFICATION_ALLOWED_ERR is thrown.

noderemovechild24

The method removeChild removes the child node indicated by oldChild from the list of children, and returns it.

Using removeChild on an Entity node attempt to remove a Text child and verify if a NO_MODIFICATION_ALLOWED_ERR gets thrown.

noderemovechild25

The method removeChild removes the child node indicated by oldChild from the list of children, and returns it.

Using removeChild on an Entity node attempt to remove an Element child and verify if a NO_MODIFICATION_ALLOWED_ERR gets thrown.

noderemovechild26

The method removeChild removes the child node indicated by oldChild from the list of children, and returns it.

Using removeChild on an Entity node attempt to remove a ProcessingInstruction child and verify if a NO_MODIFICATION_ALLOWED_ERR gets thrown.

noderemovechild28

The method removeChild removes the child node indicated by oldChild from the list of children, and returns it.

Using removeChild on an Attribute node attempt to remove its Text child node and and verify the name of the returned node that was removed. Now attempt the reverse and verify if a NOT_FOUND_ERR is thrown.

noderemovechild29

The method removeChild removes the child node indicated by oldChild from the list of children, and returns it.

Using removeChild on a namepsace Attribute node attempt to remove its Text child node and and verify the name of the returned node that was removed. Now attempt the reverse and verify if a NOT_FOUND_ERR is thrown.

noderemovechild30

The method removeChild removes the child node indicated by oldChild from the list of children, and returns it.

Using removeChild on a default Attribute node attempt to remove its Text child node and and verify the name of the returned node that was removed. Now attempt the reverse and verify if a NOT_FOUND_ERR is thrown.

noderemovechild31

The method removeChild removes the child node indicated by oldChild from the list of children, and returns it.

Using removeChild on a default Attribute node attempt to remove its EntityReference child node and and verify the name of the returned node that was removed. Now attempt the reverse and verify if a NO_MODIFICATION_ALLOWED_ERR is thrown. or should this NOT_FOUND_ERR

nodereplacechild12

The method replaceChild replaces the child node oldChild with newChild in the list of children, and returns the oldChild node.

Using replaceChild on this Document node attempt to replace a new ProcessingInstruction node with new Elemet node and verify if the name of the replaced element Node.

nodereplacechild22

The method replaceChild replaces the child node oldChild with newChild in the list of children, and returns the oldChild node.

Using replaceChild on a new EntityReference node attempt to replace an EntityReference node with its Element parent, with itself and vice versa verify if a NO_MODIFICATION_ALLOWED_ERR is thrown.

nodereplacechild23

The method replaceChild replaces the child node oldChild with newChild in the list of children, and returns the oldChild node.

Using replaceChild on a new EntityReference node attempt to replace an Element, Text, Comment, ProcessingInstruction and CDATASection nodes with each other and in each case verify if a NO_MODIFICATION_ALLOWED_ERR is thrown.

nodereplacechild24

The method replaceChild replaces the child node oldChild with newChild in the list of children, and returns the oldChild node.

Using replaceChild on an EntityReference node attempt to replace an Element node with an EntityReference node verify if a NO_MODIFICATION_ALLOWED_ERR gets thrown.

nodereplacechild28

The method replaceChild replaces the child node oldChild with newChild in the list of children, and returns the oldChild node.

Using replaceChild on an Element node that is a child of a read-only EntityReference node attempt to replace a new Element child node with another new Element node and verify if a NO_MODIFICATION_ALLOWED_ERR gets thrown.

nodereplacechild31

The method replaceChild replaces the child node oldChild with newChild in the list of children, and returns the oldChild node.

Using replaceChild on an Element node that is the replacement Text of an EntityReference node, attempt to replace its Text child node with a new Element node and verify if a NO_MODIFICATION_ALLOWED_ERR gets thrown.

nodereplacechild33

The method replaceChild replaces the child node oldChild with newChild in the list of children, and returns the oldChild node.

Using replaceChild on a default Attr node to replace its Text Child with a new EntityReference Node and verify the value of the replaced child.

nodereplacechild34

The method replaceChild replaces the child node oldChild with newChild in the list of children, and returns the oldChild node.

Using replaceChild on a new Attr node, replace its new EntityRefernece Child with a new Text Node and verify the value of the new child.

nodereplacechild38

The method replaceChild replaces the child node oldChild with newChild in the list of children, and returns the oldChild node.

Using replaceChild on an Entity node attempt to replace its Text child with new Text, Comment, ProcessingInstruction and CDATASection nodes and in each case verify if a NO_MODIFICATION_ALLOWED_ERR is raised.

nodesettextcontent01

The method setTextContent has no effect when the node is defined to be null.

Using setTextContent on this Document node, attempt to set the textContent of this Document node to textContent. Check if it was not set by checking the nodeName of the 4th address element.

nodesettextcontent03

The method setTextContent has no effect when the node is defined to be null.

Using setTextContent on this DocumentType node, attempt to set the textContent of this DocumentType node to textContent. Retreive the textContent and verify if it is null.

nodesettextcontent04

The method setTextContent has no effect when the node is defined to be null.

Using setTextContent on this DocumentType node, attempt to set the textContent of a Notation node to textContent. Retreive the textContent and verify if it is null.

nodesettextcontent05

The method setTextContent has no effect when the node is defined to be null.

Using setTextContent on a default Attr node, attempt to set its value to NA. Retreive the textContent and verify if it is was set to NA.

nodesettextcontent06

The method setTextContent has no effect when the node is defined to be null.

Using setTextContent on a new Attr node with a null value, attempt to set its value to NA. Retreive the textContent and verify if it is was set to NA.

nodesettextcontent07

The method setTextContent has no effect when the node is defined to be null.

Using setTextContent on an existing Text node, attempt to set its value to Text. Retreive the textContent and verify if it is was set to Text.

nodesettextcontent08

The method setTextContent has no effect when the node is defined to be null.

Using setTextContent on a new Processing Instruction node, attempt to set its data to PID. Retreive the textContent and verify if it is was set to PID.

nodesettextcontent11

The method setTextContent has no effect when the node is defined to be null.

Using setTextContent on a new DocumentFragment node Element child, attempt to set its content to DOCUMENTFRAGMENT. Retreive the textContent and verify if it is was set to DOCUMENTFRAGMENT

nodesettextcontent12

The method setTextContent has no effect when the node is defined to be null.

Using setTextContent on a new EntityReference node, attempt to set its value. Since EntityReference nodes are ReadOnly, check if a NO_MODIFICATION_ALLOWED_ERR is raised.

nodesettextcontent13

The method setTextContent has no effect when the node is defined to be null.

Using setTextContent on an Entity node, attempt to set its replacement text. Since Entity nodes are ReadOnly, check if a NO_MODIFICATION_ALLOWED_ERR is raised.

nodesetuserdata05

The method setUserData associates an object to a Key on this node.

Invoke setUserData on a new Attr to set its UserData to two Document nodes obtained by parsing the same xml document. Using getUserData and isNodeEqual verify if the returned nodes are Equal.

nodesetuserdata08

The method setUserData associates an object to a Key on this node.

Invoke setUserData on a CDATASection and EntityReference node to set their UserData to this Document and DocumentElement node. Verify if the UserData object that was set for both nodes is different.

textiselementcontentwhitespace02

The method isElementContentWhitespace returns whether this text node contains whitespace in element content.

Invoke isElementContentWhitespace on a newly created Text Node that does not contain whitespace.

textreplacewholetext01

The method replaceWholeText substitutes the a specified text for the text of the current node and all logically-adjacent text nodes. This method returns the node in the hierarchy which received the replacement text, which is null if the text was empty or is the current node if the current node is not read-only or otherwise is a new node of the same type as the current node inserted at the site of the replacement.

Invoke replaceWholeText on an existing Text Node to replace its value with a new value containing whiteSpace characters. Verify the repalceWholeText by verifying the values returned by wholeText and isElementContentWhitespace of the returned Text node.

textreplacewholetext02

The method replaceWholeText substitutes the a specified text for the text of the current node and all logically-adjacent text nodes. This method returns the node in the hierarchy which received the replacement text, which is null if the text was empty or is the current node if the current node is not read-only or otherwise is a new node of the same type as the current node inserted at the site of the replacement.

Invoke replaceWholeText on an existing Text Node to replace its value with an empty string value. Verify the repalceWholeText method by verifying if the value returned is null.

textreplacewholetext03

The method replaceWholeText substitutes the a specified text for the text of the current node and all logically-adjacent text nodes. This method returns the node in the hierarchy which received the replacement text, which is null if the text was empty or is the current node if the current node is not read-only or otherwise is a new node of the same type as the current node inserted at the site of the replacement.

Invoke replaceWholeText on an new Text Node to replace its value with a new value. Verify the repalceWholeText by verifying the values returned by wholeText of the returned Text node.

textreplacewholetext04

The method replaceWholeText substitutes the a specified text for the text of the current node and all logically-adjacent text nodes. This method returns the node in the hierarchy which received the replacement text, which is null if the text was empty or is the current node if the current node is not read-only or otherwise is a new node of the same type as the current node inserted at the site of the replacement.

Invoke replaceWholeText on an new Text Node to replace its value with an empty value. Verify the repalceWholeText by verifying the values returned by wholeText.

textreplacewholetext05

The method replaceWholeText substitutes the a specified text for the text of the current node and all logically-adjacent text nodes. This method returns the node in the hierarchy which received the replacement text, which is null if the text was empty or is the current node if the current node is not read-only or otherwise is a new node of the same type as the current node inserted at the site of the replacement.

Invoke replaceWholeText on an existing text node with newly created text and CDATASection nodes appended as children of its parent element node. Verify repalceWholeText by verifying the values returned by wholeText.

textreplacewholetext07

The method replaceWholeText substitutes the a specified text for the text of the current node and all logically-adjacent text nodes. This method raises a NO_MODIFICATION_ALLOWED_ERR if one of the Text nodes being replaced is readonly.

Invoke replaceWholeText on an existing text node with newly created text and Entityreference nodes (whose replacement text is not text or cdata) appended as children of its parent element node. Check if a NO_MODIFICATION_ALLOWED_ERR gets thrown.

textwholetext01

The method wholetext returns all text of Text nodes logically-adjacent text nodes to this node, concatenated in document order.

Invoke wholetext on an existing Text Node that contains whitespace and verify if the value returned is correct.

textwholetext02

The method wholetext returns all text of Text nodes logically-adjacent text nodes to this node, concatenated in document order.

Invoke wholetext on an existing Text Node that contains whitespace and and verify if the value returned is correct.

textwholetext03

The method wholetext returns all text of Text nodes logically-adjacent text nodes to this node, concatenated in document order.

Invoke wholetext on two newly created text nodes and verify if the value returned is correct.

documentadoptnode05

The adoptNode method changes the ownerDocument of a node, its children, as well as the attached attribute nodes if there are any. If the node has a parent it is first removed from its parent child list. If the node is an Attr node, the ownerElement attribute is set to null and the specified flag is set to true on the adopted Attr. The descendants of the source Attr are recursively adopted.

Invoke adoptNode on a new document to adopt the default attribute defaultAttr. Check if this attribute has been adopted successfully by verifying the nodeName, namespaceURI, prefix, specified and ownerElement attributes of the adopted node.

documentadoptnode13

The adoptNode method changes the ownerDocument of a node, its children, as well as the attached attribute nodes if there are any. If the node has a parent it is first removed from its parent child list. If the node is an DocumentFragment node, its descendants are recursively adopted.

Using the method adoptNode, adopt a newly created DocumentFragment node populated with with the first address element of this Document. Since the decendants of a documentFragment are recursively adopted, check if the adopted node has children.

documentadoptnode14

The adoptNode method changes the ownerDocument of a node, its children, as well as the attached attribute nodes if there are any. If the node has a parent it is first removed from its parent child list. If the node is an DocumentFragment node, its descendants are recursively adopted.

Using the method adoptNode in a new Document, adopt a newly created DocumentFragment node populated with with the first address element of this Document as its newChild. Since the decendants of a documentFragment are recursively adopted, check if the adopted node has children.

documentadoptnode15

The adoptNode method changes the ownerDocument of a node, its children, as well as the attached attribute nodes if there are any. If the node has a parent it is first removed from its parent child list. If the node is an DocumentFragment node, its descendants are recursively adopted.

Using the method adoptNode, adopt a newly created DocumentFragment node without any children. Check if the adopted node has no children.

documentadoptnode22

The adoptNode method changes the ownerDocument of a node, its children, as well as the attached attribute nodes if there are any. If the node has a parent it is first removed from its parent child list. For Element Nodes, specified attribute nodes of the source element are adopted, Default attributes are discarded and descendants of the source element are recursively adopted.

Invoke the adoptNode method on this document with the documentElement as the source. Verify if the node has been adopted correctly by its nodeName.

documentadoptnode23

The adoptNode method changes the ownerDocument of a node, its children, as well as the attached attribute nodes if there are any. If the node has a parent it is first removed from its parent child list. For Element Nodes, specified attribute nodes of the source element are adopted, Default attributes are discarded and descendants of the source element are recursively adopted.

Invoke the adoptNode method on this document with the first address element node of this Document as the source. Verify if the node has been adopted correctly by checking the length of the this elements childNode list before and after.

documentadoptnode25

The adoptNode method changes the ownerDocument of a node, its children, as well as the attached attribute nodes if there are any. If the node has a parent it is first removed from its parent child list. For Element Nodes, specified attribute nodes of the source element are adopted, Default attributes are discarded and descendants of the source element are recursively adopted.

Invoke the adoptNode method on a new document with a new Element of this Document as the source. Verify if the node has been adopted correctly by checking the nodeName of the adopted Element.

documentadoptnode26

The adoptNode method changes the ownerDocument of a node, its children, as well as the attached attribute nodes if there are any. If the node has a parent it is first removed from its parent child list. For Element Nodes, specified attribute nodes of the source element are adopted, Default attributes are discarded and descendants of the source element are recursively adopted.

Invoke the adoptNode method on this document using a new Element and a new attribute created in a new Document as the source. Verify if the node has been adopted correctly by checking the nodeName of the adopted Element and by checking if the attribute was adopted.

documentadoptnode27

The adoptNode method changes the ownerDocument of a node, its children, as well as the attached attribute nodes if there are any. If the node has a parent it is first removed from its parent child list. For Element Nodes, specified attribute nodes of the source element are adopted, Default attributes are discarded and descendants of the source element are recursively adopted.

Invoke the adoptNode method on this document using a new imported Element and a new attribute created in a new Document as the source. Verify if the node has been adopted correctly by checking the nodeName of the adopted Element and by checking if the attribute was adopted.

documentadoptnode28

The adoptNode method changes the ownerDocument of a node, its children, as well as the attached attribute nodes if there are any. If the node has a parent it is first removed from its parent child list. For Element Nodes, specified attribute nodes of the source element are adopted, Default attributes are discarded and descendants of the source element are recursively adopted.

Invoke the adoptNode method on this document using the employee element with the default Attribute defaulAttr as the source. Verify if the node has been adopted correctly by checking the nodeName of the adopted Element and by checking if the attribute was adopted. Note the default attribute should be adopted in this case.

documentadoptnode30

The adoptNode method changes the ownerDocument of a node, its children, as well as the attached attribute nodes if there are any. If the node has a parent it is first removed from its parent child list.

Invoke the adoptNode method on this document using a new Text node as the source. Verify if the node has been adopted correctly by checking the nodeValue of the adopted node.

documentadoptnode31

The adoptNode method changes the ownerDocument of a node, its children, as well as the attached attribute nodes if there are any. If the node has a parent it is first removed from its parent child list.

Invoke the adoptNode method on this document using a new Text node from a new Document as the source. Verify if the node has been adopted correctly by checking the nodeValue of the adopted node.

documentadoptnode32

The adoptNode method changes the ownerDocument of a node, its children, as well as the attached attribute nodes if there are any. If the node has a parent it is first removed from its parent child list.

Invoke the adoptNode method on another document using a new CDataSection node created in this Document as the source. Verify if the node has been adopted correctly by checking the nodeValue of the adopted node.

documentadoptnode33

The adoptNode method changes the ownerDocument of a node, its children, as well as the attached attribute nodes if there are any. If the node has a parent it is first removed from its parent child list.

Invoke the adoptNode method on this document using a new CDataSection node created in a new Document as the source. Verify if the node has been adopted correctly by checking the nodeValue of the adopted node.

documentadoptnode34

The adoptNode method changes the ownerDocument of a node, its children, as well as the attached attribute nodes if there are any. If the node has a parent it is first removed from its parent child list.

Invoke the adoptNode method on a new document using a new Comment node created in it as the source. Verify if the node has been adopted correctly by checking the nodeValue of the adopted node.

documentadoptnode35

The adoptNode method changes the ownerDocument of a node, its children, as well as the attached attribute nodes if there are any. If the node has a parent it is first removed from its parent child list.

Invoke the adoptNode method on this document using a new PI node created in a new doc as the source. Verify if the node has been adopted correctly by checking the nodeValue of the adopted node.

documentadoptnode36

The adoptNode method changes the ownerDocument of a node, its children, as well as the attached attribute nodes if there are any. If the node has a parent it is first removed from its parent child list.

Invoke the adoptNode method on this document using a new PI node created in a new doc as the source. Verify if the node has been adopted correctly by checking the nodeValue of the adopted node.

documentgetdoctype01

The getDocType method returns the document type declaration associated with this document. This node can be set at document creation time and later changed through the use of child nodes manipulation methods, such as insertBefore, or replaceChild.

Retreive the doctype node, create a new Doctype node, call replaceChild and try replacing the docType node with a new docType node. Check if the docType node was correctly replaced with the new one.

documentgetxmlencoding01

The method getXmlEncoding returns the the encoding of this document.

Call the getXmlEncoding method on a UTF-8 encoded XML document in which the encoding pseudo attribute in its XMLDecl is UTF-8 and check if the value returned is UTF-8.

documentgetxmlencoding03

The method getXmlEncoding returns the the encoding of this document.

Call the getXmlEncoding method on a UTF-16 encoded document and check if the value returned is UTF-16.

documentgetxmlencoding05

The method getXmlEncoding returns the the encoding of this document.

Call the getXmlEncoding method on a cloned UTF-8 encoded document and check if the value returned is UTF-8 or null (implementation dependent).

documentgetxmlstandalone01

The getXmlStandalone method returns an attribute specifying, as part of the XML declaration, whether this document is standalone. This is false when unspecified.

Retreive the xmlStandalone attribute of a document for which standalone was not specified, this should return false since the default for standalone is no when external markup decls are present.

documentgetxmlstandalone02

The getXmlStandalone method returns an attribute specifying, as part of the XML declaration, whether this document is standalone. This is false when unspecified.

The value of the standalone pesudo-attribute for a new Document should be false.

documentgetxmlstandalone03

The getXmlStandalone method returns an attribute specifying, as part of the XML declaration, whether this document is standalone. This is false when unspecified.

The value of the standalone attribute for an XML document with the standalone="no" should be false.

documentgetxmlstandalone04

The getXmlStandalone method returns an attribute specifying, as part of the XML declaration, whether this document is standalone. This is false when unspecified.

Retreive the documentURI of a document for which standalone was specified as "yes", this should return true.

documentgetxmlstandalone05

The getXmlStandalone method returns an attribute specifying, as part of the XML declaration, whether this document is standalone. This is false when unspecified.

Cretae a new DocumentType node whose systemId is StaffNS.DTD. Create a new Document node. Check if the value of the standalone attribute on the new Documet is false.

documentgetxmlversion01

An attribute specifying, as part of the XML declaration, the version number of this document. If there is no declaration and if this document supports the "XML" feature, the value is "1.0". If this document does not support the "XML" feature, the value is always null. Changing this attribute will affect methods that check for illegal characters in XML names. Application should invoke Document.normalizeDocument() in order to check for illegal characters in the Nodes that are already part of this Document.

Check if the value of the version attribute in the XML declaration of this document obtained by parsing staffNS.xml is "1.0".

documentgetxmlversion02

An attribute specifying, as part of the XML declaration, the version number of this document. If there is no declaration and if this document supports the "XML" feature, the value is "1.0". If this document does not support the "XML" feature, the value is always null. Changing this attribute will affect methods that check for illegal characters in XML names. Application should invoke Document.normalizeDocument() in order to check for illegal characters in the Nodes that are already part of this Document.

Check if the value of the version attribute in the XML declaration of a new document is "1.0".

documentgetxmlversion03

An attribute specifying, as part of the XML declaration, the version number of this document. If there is no declaration and if this document supports the "XML" feature, the value is "1.0". If this document does not support the "XML" feature, the value is always null. Changing this attribute will affect methods that check for illegal characters in XML names. Application should invoke Document.normalizeDocument() in order to check for illegal characters in the Nodes that are already part of this Document.

Check if the value of the version attribute in a XML document without a XMLDecl is is "1.0".

documentsetxmlstandalone01

The setXmlStandalone method sets an attribute specifying, as part of the XML declaration, whether this document is standalone.

Set the standalone attribute of this document to true and verify if the attribute was correctly set.

documentsetxmlstandalone02

The setXmlStandalone method sets an attribute specifying, as part of the XML declaration, whether this document is standalone.

Create a new document object and set standalone to false and check if it was correctly set. Then repeat this by setting it to true.

documentsetxmlversion02

The setXmlVersion method sets the version number attribute of the XML declaration.

Set the value of the version attribute of the XML declaration of a new document to "1.0" and check if it was correctly set.

documentsetxmlversion03

The setXmlVersion method sets the version number attribute of the XML declaration.

Set the value of the version attribute of the XML declaration of a new document to "1.0" and check if it was correctly set.

nodegettextcontent06

The method getTextContent returns the text content of this node and its descendants.

Invoke the method getTextContent on a default Attr node and check if the value returned is the attributes Value.

nodegettextcontent07

The method getTextContent returns the text content of this node and its descendants.

Invoke the method getTextContent on a new Attr node and check if the value returned is the attributes Value.

nodegettextcontent08

The method getTextContent returns the text content of this node and its descendants.

Invoke the method getTextContent on a new Attr node and check if the value returned is the attributes Value.

nodegettextcontent09

The method getTextContent returns the text content of this node and its descendants.

Invoke the method getTextContent on a new Text node and check if the value returned is the text content.

nodegettextcontent10

The method getTextContent returns the text content of this node and its descendants.

Invoke the method getTextContent on an existing Text node and check if the value returned is the elements Text content.

nodegettextcontent11

The method getTextContent returns the text content of this node and its descendants.

Invoke the method getTextContent on an existing CDATASection node and check if the value returned is the CDATASections content.

nodegettextcontent12

The method getTextContent returns the text content of this node and its descendants.

Invoke the method getTextContent on a new Comment node and check if the value returned is the Comments data.

nodegetuserdata01

The method getUserData retrieves the object associated to a key on a this node.

Using getUserData with a junk value for the key attempt to retreive the UserData object of this Document node without setting it and verify if null is returned.

nodegetuserdata02

The method getUserData retrieves the object associated to a key on a this node.

Using getUserData with a junk value for the key attempt to retreive the UserData object of this Document node without setting it and verify if null is returned.

nodegetuserdata03

The method setUserData associates an object to a Key on this node.

Invoke setUserData on this Document to set this Documents UserData to a new Element node and using getUserData and isEqualNode check if the returned UserData object is the same as the object that was set.

nodegetuserdata04

The method setUserData associates an object to a Key on this node.

Invoke setUserData on this DocumentType to set this its UserData to a this Document node and using getUserData and isEqualNode check if the returned UserData object is the same as the object that was set.

nodegetuserdata05

The method setUserData associates an object to a Key on this node.

Invoke setUserData on this Entity node to set this its UserData to a new Attr node and using getUserData with an invalid Key check if the returned UserData object is Null.

nodegetuserdata06

The method setUserData associates an object to a Key on this node.

Invoke getUserData on a new Text node with an ampty Key check if the returned UserData object is Null.

nodegetuserdata07

The method setUserData associates an object to a Key on this node.

Invoke setUserData on a new PI node to set this its UserData to itself and using getUserData with an valid Key and isEqualsNode check if the returned UserData object is the same as that was set.

nodeinsertbefore01

The method insertBefore inserts the node newChild before the existing child node refChild. If refChild is null, insert newChild at the end of the list of children.

Using insertBefore on this Document node attempt to insert a new Comment node before this DocumentElement node and verfiy the name of the inserted Comment node. Now attempt to insert a new Processing Instruction node before the new Comment and verify the target of the inserted ProcessingInstruction.

nodeinsertbefore02

The method insertBefore inserts the node newChild before the existing child node refChild. If refChild is null, insert newChild at the end of the list of children.

Using insertBefore on a new Document node attempt to insert a new Comment node before this DocumentType node and verfiy the name of the inserted Comment node. Now attempt to insert a new Processing Instruction node before the new Comment and verify the target of the inserted ProcessingInstruction.

nodeinsertbefore03

The method insertBefore inserts the node newChild before the existing child node refChild. If refChild is null, insert newChild at the end of the list of children.

Using insertBefore on this Document node attempt to insert a new Attr node before this DocumentType node and verfiy if a HIERARCHY_REQUEST_ERR is raised.

nodeinsertbefore04

The method insertBefore inserts the node newChild before the existing child node refChild. If refChild is null, insert newChild at the end of the list of children.

Using insertBefore on this Document node attempt to insert this Document node before this DocumentType node and verfiy if a HIERARCHY_REQUEST_ERR is raised.

nodeinsertbefore05

The method insertBefore inserts the node newChild before the existing child node refChild. If refChild is null, insert newChild at the end of the list of children.

Using insertBefore on a new Document node attempt to insert a DocumentType node before this DocumentType node and verfiy if a HIERARCHY_REQUEST_ERR is raised.

nodeinsertbefore06

The method insertBefore inserts the node newChild before the existing child node refChild. If refChild is null, insert newChild at the end of the list of children.

Using insertBefore on this Document node attempt to insert an Element node before this DocumentElement node and verfiy if a HIERARCHY_REQUEST_ERR is raised.

nodeinsertbefore07

The method insertBefore inserts the node newChild before the existing child node refChild. If refChild is null, insert newChild at the end of the list of children.

Using insertBefore on this Document node attempt to insert a Comment node created by another Document before this DocumentElement node and verfiy if a WRONG_DOCUMENT_ERR is raised.

nodeinsertbefore08

The method insertBefore inserts the node newChild before the existing child node refChild. If refChild is null, insert newChild at the end of the list of children.

Using insertBefore on this Document node attempt to insert a Comment node created by this Document before another Document's DocumentElement node and verfiy if a NOT_FOUND_ERR is raised.

nodeinsertbefore10

The method insertBefore inserts the node newChild before the existing child node refChild. If refChild is null, insert newChild at the end of the list of children.

Using insertBefore on this Document node attempt to insert a new Element node before another Element node and verfiy if a is HIERARCHY_REQUEST_ERR raised.

nodeinsertbefore11

The method insertBefore inserts the node newChild before the existing child node refChild. If refChild is null, insert newChild at the end of the list of children.

Using insertBefore on a DocumentFragment node attempt to insert a child nodes before other permissible nodes and verfiy the contents/name of each inserted node.

nodeinsertbefore13

The method insertBefore inserts the node newChild before the existing child node refChild. If refChild is null, insert newChild at the end of the list of children.

Using insertBefore on a DocumentFragment node attempt to insert a new Element node created by another Document, before this DocumentFragment's Element node and verfiy if a WRONG_DOCUMENT_ERR is raised.

nodeinsertbefore16

The method insertBefore inserts the node newChild before the existing child node refChild. If refChild is null, insert newChild at the end of the list of children.

Using insertBefore on an Element node attempt to insert a new Element, node before its first element child and verify the name of the new first child node.

nodeinsertbefore19

The method insertBefore inserts the node newChild before the existing child node refChild. If refChild is null, insert newChild at the end of the list of children.

Using insertBefore on an Element node attempt to insert an EntityReference node, before another new EntityReference node and verify the name of the new first child node.

nodeinsertbefore20

The method insertBefore inserts the node newChild before the existing child node refChild. If refChild is null, insert newChild at the end of the list of children.

Using insertBefore on an Element node attempt to insert a new Attr node, before an EntityReference child and verify if a HIERARCHY_REQUEST_ERR is raised.

nodeinsertbefore21

The method insertBefore inserts the node newChild before the existing child node refChild. If refChild is null, insert newChild at the end of the list of children.

Using insertBefore on an Element node attempt to insert the parent Element node, before an EntityReference child and verify if a HIERARCHY_REQUEST_ERR is raised.

nodeinsertbefore22

The method insertBefore inserts the node newChild before the existing child node refChild. If refChild is null, insert newChild at the end of the list of children.

Using insertBefore on an Element node attempt to insert the ancestor of an Element node before its child and verify if a HIERARCHY_REQUEST_ERR is raised.

nodeinsertbefore23

The method insertBefore inserts the node newChild before the existing child node refChild. If refChild is null, insert newChild at the end of the list of children.

Using insertBefore on an Element node attempt to insert a Text node created by a different Document before an Element child and verify if a WRONG_DOCUMENT_ERR is raised.

nodeinsertbefore24

The method insertBefore inserts the node newChild before the existing child node refChild. If refChild is null, insert newChild at the end of the list of children.

Using insertBefore on an Element node attempt to insert a Comment node before a CDATASection node that is not a child and verify if a NOT_FOUND_ERR is raised.

nodeissamenode01

The method isSameNode returns whether this node is the same node as the given one.

Using isSameNode to check if 2 Document nodes that are equal but do not reference the same object are not the same

nodeissamenode02

The method isSameNode returns whether this node is the same node as the given one.

Using isSameNode check if 2 DocumentType nodes that reference the same object are the same.

nodeissamenode03

The method isSameNode returns whether this node is the same node as the given one.

Using isSameNode check if 2 Element nodes that reference the same object are the same.

nodeissamenode04

The method isSameNode returns whether this node is the same node as the given one.

Using isSameNode check if 2 Element nodes that are euals but do not reference the same object are not the same.

nodeissamenode05

The method isSameNode returns whether this node is the same node as the given one.

Using isSameNode check if 2 Document Element nodes that reference the same object are the same.

nodeissamenode06

The method isSameNode returns whether this node is the same node as the given one.

Using isSameNode check if 2 Document Element nodes that reference the same object are the same.

nodeissamenode07

The method isSameNode returns whether this node is the same node as the given one.

Using isSameNode check if 2 Entity nodes that reference the same object are the same.

nodeissamenode08

The method isSameNode returns whether this node is the same node as the given one.

Using isSameNode check if 2 Notation nodes that reference the same object are the same.

nodeissamenode09

The method isSameNode returns whether this node is the same node as the given one.

Using isSameNode check if an Entity and its docType nodes are not the same.

nodeissamenode10

The method isSameNode returns whether this node is the same node as the given one.

Using isSameNode check if an new Document and a new Element node are not the same.

noderemovechild01

The method removeChild removes the child node indicated by oldChild from the list of children, and returns it.

Using removeChild on this Document node attempt to remove this Document node and verify if a NOT_FOUND_ERR error is thrown.

noderemovechild02

The method removeChild removes the child node indicated by oldChild from the list of children, and returns it.

Using removeChild on this Document node attempt to remove a new Document node and vice versa and verify if a NOT_FOUND_ERR error is thrown.

noderemovechild03

The method removeChild removes the child node indicated by oldChild from the list of children, and returns it.

Using removeChild on this DocumentElement node attempt to remove this Document node and verify if the DocumentElement is null. Now try the reverse and a NOT_FOUND_ERR should be thrown.

noderemovechild04

The method removeChild removes the child node indicated by oldChild from the list of children, and returns it.

Using removeChild on this Document node attempt to remove DocumentType node and verify if the DocumentType node is null. Now try the reverse and a NOT_FOUND_ERR should be thrown.

noderemovechild08

The method removeChild removes the child node indicated by oldChild from the list of children, and returns it.

Using removeChild on this Document node attempt to remove a new Comment node and verify the data of the removed comment node..

noderemovechild09

The method removeChild removes the child node indicated by oldChild from the list of children, and returns it.

Using removeChild on this Document node attempt to remove a new ProcessingInstruction node and verify the target of the removed ProcessingInstruction node.

noderemovechild10

The method removeChild removes the child node indicated by oldChild from the list of children, and returns it.

Using removeChild on a new DocumentFragment node attempt to remove a new Element node and verify the name of the removed Element node.

noderemovechild11

The method removeChild removes the child node indicated by oldChild from the list of children, and returns it.

Using removeChild on a new DocumentFragment node attempt to remove a new Text node and verify the name of the removed Element node.

noderemovechild16

The method removeChild removes the child node indicated by oldChild from the list of children, and returns it.

Using removeChild on the first 'employee' Element node attempt to remove its employeeId Element child and verify the name of the rturned node that was removed. Now attempt the reverse and verify if a NOT_FOUND_ERR is thrown.

noderemovechild17

The method removeChild removes the child node indicated by oldChild from the list of children, and returns it.

Using removeChild on the first 'employee' Element node attempt to remove a Text node child and verify the contents of the returned node that was removed. Now attempt the reverse and verify if a NOT_FOUND_ERR is thrown.

noderemovechild18

The method removeChild removes the child node indicated by oldChild from the list of children, and returns it.

Using removeChild on the first 'employee' Element node attempt to remove a CDATASection node child and verify the contents of the returned node that was removed. Now attempt the reverse and verify if a NOT_FOUND_ERR is thrown.

noderemovechild20

The method removeChild removes the child node indicated by oldChild from the list of children, and returns it.

Using removeChild on the first 'employee' Element node attempt to remove a new Element child and verify the name of the returned node that was removed. Now attempt to do the same on a cloned child and verify if a NOT_FOUND_ERR is thrown.

noderemovechild21

The method removeChild removes the child node indicated by oldChild from the list of children, and returns it.

Using removeChild on a new Element node attempt to remove a new Element child and verify the name of the rturned node that was removed. Now append the parent to the documentElement and attempt to remove the child using removeChild on the documentElement and verify if a NOT_FOUND_ERR is thrown.

noderemovechild22

The method removeChild removes the child node indicated by oldChild from the list of children, and returns it.

Using removeChild on a new Element node attempt to remove a new Comment child and verify the name of the rturned node that was removed. Now to remove the child using removeChild on the parent and verify if a NOT_FOUND_ERR is thrown.

noderemovechild23

The method removeChild removes the child node indicated by oldChild from the list of children, and returns it.

Using removeChild on a new Element node attempt to remove a new ProcessingInstruction child and verify the name of the returned node that was removed. Now to remove the child using removeChild on the parent and verify if a NOT_FOUND_ERR is thrown.

nodereplacechild06

The method replaceChild replaces the child node oldChild with newChild in the list of children, and returns the oldChild node.

Using replaceChild on this Document node attempt to replace this DocumentElement node with a new element and verify if the name of the replaced documentElement Node.

nodereplacechild07

The method replaceChild replaces the child node oldChild with newChild in the list of children, and returns the oldChild node.

Using replaceChild on this Document node attempt to replace this DocumentElement node with a new element and verify if the name of the replaced documentElement Node.

nodereplacechild08

The method replaceChild replaces the child node oldChild with newChild in the list of children, and returns the oldChild node.

Using replaceChild on this Document node attempt to replace this DocumentElement node with a new element that was created in another document and verify if a WRONG_DOCUMENT_ERR is thrown.

nodereplacechild13

The method replaceChild replaces the child node oldChild with newChild in the list of children, and returns the oldChild node.

Using replaceChild on this Document node attempt to replace this DocumentType node with a new DocumentType and verify the name of the replaced DocumentType node.

nodereplacechild15

The method replaceChild replaces the child node oldChild with newChild in the list of children, and returns the oldChild node.

Using replaceChild on a DocumentFragment node attempt to replace an Element node with another Element and verify the name of the replaced Element node.

nodereplacechild16

The method replaceChild replaces the child node oldChild with newChild in the list of children, and returns the oldChild node.

Using replaceChild on a DocumentFragment node attempt to replace an Element node with another Element and verify the name of the replaced Element node.

nodereplacechild17

The method replaceChild replaces the child node oldChild with newChild in the list of children, and returns the oldChild node.

Using replaceChild on a DocumentFragment node attempt to replace a Comment node with a ProcessingInstruction and vice versa verify the data of the replaced nodes.

nodereplacechild18

The method replaceChild replaces the child node oldChild with newChild in the list of children, and returns the oldChild node.

Using replaceChild on a DocumentFragment node attempt to replace a CDATASection node with a EntityReference and vice versa verify the data of the replaced nodes.

nodereplacechild19

The method replaceChild replaces the child node oldChild with newChild in the list of children, and returns the oldChild node.

Using replaceChild on a DocumentFragment node attempt to replace an Element node with its EntityReference child verify the nodeName of the replaced node.

nodereplacechild20

The method replaceChild replaces the child node oldChild with newChild in the list of children, and returns the oldChild node.

Using replaceChild on a DocumentFragment node attempt to replace an Element node with an Attr Node and verify if a HIERARCHY_REQUEST_ERR is thrown.

nodereplacechild25

The method replaceChild replaces the child node oldChild with newChild in the list of children, and returns the oldChild node.

Using replaceChild on an Element node attempt to replace an EntityReference child node with an Entity node and with itself and verify if a HIERARCHY_REQUEST_ERR gets thrown.

nodereplacechild26

The method replaceChild replaces the child node oldChild with newChild in the list of children, and returns the oldChild node.

Using replaceChild on an Element node attempt to replace a Text child node with an Element node that is an ancestor of this Element node and verify if a HIERARCHY_REQUEST_ERR gets thrown.

nodereplacechild29

The method replaceChild replaces the child node oldChild with newChild in the list of children, and returns the oldChild node.

Using replaceChild on an Element node attempt to replace a new Element node with another new Element node and verify if a NOT_FOUND_ERR gets thrown.

nodereplacechild30

The method replaceChild replaces the child node oldChild with newChild in the list of children, and returns the oldChild node.

Using replaceChild on an Element node attempt to replace a new Element child node with new child nodes and vice versa and in each case verify the name of the replaced node.

nodereplacechild35

The method replaceChild replaces the child node oldChild with newChild in the list of children, and returns the oldChild node.

Using replaceChild on a new Attr node, replace its new EntityRefernece Child with a new Attr Node and verify if a HIERARCHY_REQUEST_ERR is thrown.

nodereplacechild36

The method replaceChild replaces the child node oldChild with newChild in the list of children, and returns the oldChild node.

Using replaceChild on a new Attr node, replace its new EntityRefernece node with a new Text Node and verify if a NOT_FOUND_ERR is thrown.

nodereplacechild37

The method replaceChild replaces the child node oldChild with newChild in the list of children, and returns the oldChild node.

Using replaceChild on a new Attr node, replace its new Text node with a new EntityRefernec Node created by another document and verify if a WRONG_DOCUMENT_ERR is raised.

nodesetuserdata01

The method setUserData associates an object to a Key on this node.

Using setUserData with null values for the UserData and the handler parameters, check if returned the current userData object of this Document node is null.

nodesetuserdata02

The method setUserData associates an object to a Key on this node.

Using setUserData with values for the UserData as this Document and the handler as null parameters, check if returned the current userData object of this Document node is null.

nodesetuserdata03

The method setUserData associates an object to a Key on this node.

Invoke setUserData on this Document to set this Documents UserData to a new Element node. Do the same with a new Text node and using isNodeEqual verify the returned Element UserData object.

nodesetuserdata04

The method setUserData associates an object to a Key on this node.

Invoke setUserData on a new Element to set its UserData to a new Text node twice using different Keys. Using getUserData with each Key and isNodeEqual verify if the returned nodes are Equal.

nodesetuserdata06

The method setUserData associates an object to a Key on this node.

Invoke setUserData on a new Comment to set its UserData to an Entity node twice using the same key. Verify if the UserData object that was by the second setUserData is the same as original Entity.

nodesetuserdata07

The method setUserData associates an object to a Key on this node.

Invoke setUserData on a Notation to set its UserData to a Comment node twice using the same key. Verify if the UserData object that was returned by second setUserData is the Comment node set in the first setUserData call.

nodesetuserdata09

The method setUserData associates an object to a Key on this node.

Invoke setUserData on this documentElement node to set its UserData to this Document node. Invoke getUserData on this Document node with the same key of the UserData that was just set on the documentElement node and verify if the returned node is null.