Submitters
Jason Brittsan, Software Test Engineer, Microsoft Corporation
Markus Mielke, Program Manager, Microsoft Corporation
Date
April 12, 2001 5:30 PM PST
Test Case | Expected Result |
HTML-Only Imp. |
XML Imp. | Exception Handling Implementation |
Non-exception Handling Implementation |
Verify hasFeature(feature, version) with "HTML" and "1.0" specified returns true | True | X | X | X | X |
Verify hasFeature(feature, version) with "html" and "1.0" specified | True | X | X | X | X |
Verify hasFeature(feature, version) with only "HTML" specified | True | X | X | X | X |
Verify hasFeature(feature, version) with "XML" and "1.0" specified | True | X | X | X | |
Verify hasFeature(feature, version) with "xml" and "1.0" specified | True | X | X | X | |
Verify hasFeature(feature, version) with only "XML" specified | True | X | X | X |
Test Case | Expected Result | HTML-Only Imp. | XML Imp. | Exception Handling Implementation | Non-exception Handling Implementation |
Verify the doctype attribute returns null when no document type declaration has been made | null | X | X | X | X |
Verify the doctype attribute returns the specified value when the document type has been declared | the specified doctype | X | X | X | X |
Verify the documentElement attribute returns an element with the tagName "HTML" | HTML | X | X | X | X |
Verify createElement(tagName) returns an element with a specified tagName | an element with the specified tagName | X | X | X | X |
Verify createTextNode(data) returns a Text object with the specified data | a Text object with the specified data | X | X | X | X |
Verify createComment(data) returns a Comment object with the specified data | a Comment object with the specified data | X | X | X | X |
Verify createAttribute(data) returns an Attr object with the specified name | an Attr object with the specified name | X | X | X | X |
Verify getElementsByTagName(tagName) returns a NodeList object of all elements with the specified tagName | a NodeList object of all elements with the specified tagName | X | X | X | X |
Verify getElementsByTagName(tagName) returns a NodeList object of all elements in the document when "*" is specified | a NodeList object of all elements in the document | X | X | X | X |
Verify createCDATASection(data) returns a CDATASection object with the specified data | a CDATASection object with the specified data | X | X | X | |
Verify createProcessingInstruction(target, data) returns a ProcessingInstruction object with the specified data | a ProcessingInstruction object with the specified data | X | X | X | |
Verify createEntityReference(name) returns an EntityReference object with the specified data | an EntityReference object with the specified data | X | X | X | |
Verify createElement(tagName) with an invalid tagName parameter raises an INVALID_CHARACTER_ERR exception | INVALID_CHARACTER_ERR exception | X | X | ||
Verify createCDATASection(data) raises a NOT_SUPPORTED_ERR exception if used in an HTML-Only implementation | NOT_SUPPORTED_ERR exception | X | X | ||
Verify createProcessingInstruction(target, data) raises a NOT_SUPPORTED_ERR exception if used in an HTML-Only implementation | NOT_SUPPORTED_ERR exception | X | X | ||
Verify createProcessingInstruction(target, data) with an invalid data parameter raises an INVALID_CHARACTER_ERR exception | INVALID_CHARACTER_ERR exception | X | X | ||
Verify createAttribute(name) with an invalid name parameter raises an INVALID_CHARACTER_ERR exception | INVALID_CHARACTER_ERR exception | X | X | X | |
Verify createEntityReference(name) raises a NOT_SUPPORTED_ERR exception if used in an HTML-Only implementation | NOT_SUPPORTED_ERR exception | X | X | ||
Verify createEntityReference(name) raises an INVALID_CHARACTER_ERR exception when an invalid name parameter is specified | INVALID_CHARACTER_ERR exception | X | X |
Test Case | Expected Result |
HTML-Only Imp. | XML Imp. | Exception Handling Implementation |
Non-exception Handling Implementation |
Verify createElement(tagName) returns a Node object with nodeType ELEMENT_NODE (1) | a Node object with nodeType ELEMENT_NODE (1) | X | X | X | X |
Verify createAttribute(name) returns a Node object with nodeType ATTRIBUTE_NODE (2) | a Node object with nodeType ATTRIBUTE_NODE (2) | X | X | X | X |
Verify createTextNode(data) returns a Node object with nodeType TEXT_NODE (3) | a Node object with nodeType TEXT_NODE (3) | X | X | X | X |
Verify createCDATASection(data) returns a Node object with nodeType CDATA_SECTION_NODE (4) | a Node object with nodeType CDATA_SECTION_NODE (4) | X | X | X | |
Verify createEntityReference(name) returns a Node object with nodeType ENTITY_REFERENCE_NODE (5) | a Node object with nodeType ENTITY_REFERENCE_NODE (5) | X | X | X | |
Verify Entities have nodeType ENTITY_NODE (6) | a Node object with nodeType ENTITY_NODE (6) | X | X | X | |
Verify createProcessingInstruction(target, name) returns a Node object with nodeType PROCESSING_INSTRUCTION_NODE (7) | a Node object with nodeType PROCESSING_INSTRUCTION_NODE (7) | X | X | X | |
Verify createComment(data) returns a Node object with nodeType COMMENT_NODE (8) | a Node object with nodeType COMMENT_NODE (8) | X | X | X | X |
Verify the document object has nodeType DOCUMENT_NODE (9) | the document object with nodeType DOCUMENT_NODE (9) | X | X | X | X |
Verify the doctype attribute is null or of nodeType DOCUMENT_TYPE_NODE (10) | the doctype attribute with nodeType of null or DOCUMENT_TYPE_NODE (10) | X | X | X | X |
Verify createDocumentFragment() returns a Node object with nodeType DOCUMENT_FRAGMENT_NODE (11) | a Node object with nodeType DOCUMENT_FRAGMENT_NODE (11) | X | X | X | X |
Verify Notation returns a Node object with nodeType NOTATION_NODE (12) | a Node object with nodeType NOTATION_NODE (12) | X | X | X | X |
Verify createElement(tagName) returns a Node object with nodeName of the specified tagName | a Node object with nodeName of the specified tagName | X | X | X | X |
Verify createAttribute(name) returns a Node object with nodeName of the specified name | a Node object with nodeName of the specified name | X | X | X | X |
Verify createTextNode(data) returns a Node object with nodeName "#text" | a Node object with nodeName "#text" | X | X | X | X |
Verify createCDATASection(data) returns a Node object with nodeName #cdata-section | a Node object with nodeName #cdata-section | X | X | X | |
Verify createEntityReference(name) returns a Node object with nodeName of the specified name | a Node object with nodeName of the specified name | X | X | X | |
Verify Entities return have the nodeName specified in the Entity | a Node object with the specified nodeName | X | X | X | |
Verify createProcessingInstruction(target, data) returns a Node object with nodeName of the specified target | a Node object with nodeName of the specified target | X | X | X | |
Verify createComment(data) returns a Node object with nodeName "#comment" | a Node object with nodeName "#comment" | X | X | X | X |
Verify the document object has nodeName "#document" | the document object with nodeName "#document" | X | X | X | X |
Verify the doctype attribute is null or of nodeName of the specified doctype | the doctype attribute with nodeName of the specified doctype or null | X | X | X | X |
Verify createDocumentFragment() returns a Node object with nodeName "#document-fragment" | a Node object with nodeName "#document-fragment" | X | X | X | X |
Verify Notation returns a Node object with nodeName of the specified name | a Node object with nodeName of the specified name | X | X | X | X |
Verify createElement(tagName) returns a Node object with nodeValue null | a Node object with nodeValue null | X | X | X | X |
Verify createAttribute(name) returns a Node object with nodeValue of the value in the Attr | a Node object with nodeValue of the value in the Attr | X | X | X | X |
Verify createTextNode(data) returns a Node object with nodeValue of the data in the TextNode | a Node object with nodeValue of the data in the TextNode | X | X | X | X |
Verify createCDATASection(data) returns a Node object with nodeValue of the data in the CDATASection | a Node object with nodeValue of the data in the CDATASection | X | X | X | |
Verify createEntityReference(name) returns a Node object with nodeValue null | a Node object with nodeValue null | X | X | X | |
Verify Entity returns a Node object with nodeValue null | a Node object with nodeValue null | X | X | X | |
Verify createProcessingInstruction(target, data) returns a Node object with nodeValue of the data in the ProcessingInstruction | a Node object with nodeValue of the data in the ProcessingInstruction | X | X | X | |
Verify createComment(data) returns a Node object with nodeValue of the data in the Comment | a Node object with nodeValue of the data in the Comment | X | X | X | X |
Verify the document object has nodeValue null | the document object with nodeValue null | X | X | X | X |
Verify the doctype attribute is null or of nodeValue null | the doctype attribute with nodeValue null | X | X | X | X |
Verify createDocumentFragment() returns a Node object with nodeValue null | a Node object with nodeValue null | X | X | X | X |
Verify createNotation(data) returns a Node object with nodeValue null | a Node object with nodeValue null | X | X | X | X |
Verify createElement(tagName) returns a Node object with attributes in a NamedNodeMap | a Node object with attributes in a NamedNodeMap | X | X | X | X |
Verify createAttribute(name) returns a Node object with nodeValue null | a Node object with nodeValue null | X | X | X | X |
Verify createTextNode(data) returns a Node object with nodeValue null | a Node object with nodeValue null | X | X | X | X |
Verify createCDATASection(data) returns a Node object with nodeValue null | a Node object with nodeValue null | X | X | X | |
Verify createEntityReference(name) returns a Node object with nodeValue null | a Node object with nodeValue null | X | X | X | |
Verify Entities have nodeValue null | an Node object with nodeValue null | X | X | X | |
Verify createProcessingInstruction(target, data) returns a Node object with nodeValue null | a Node object with nodeValue null | X | X | X | |
Verify createComment(data) returns a Node object with nodeValue null | a Node object with nodeValue null | X | X | X | |
Verify attempting to modify a readonly nodeValue raises a NO_MODIFICATION_ALLOWED_ERR exception | NO_MODIFICATION_ALLOWED_ERR exception | X | X | X | |
Verify attempting to retrieve nodeValue that is larger than DOMString raises a DOMSTRING_SIZE_ERR exception | DOMSTRING_SIZE_ERR exception | X | X | X | |
Verify a newly created Node object's parentNode is null | a Node object's with parentNode = null | X | X | X | X |
Verify a Node object points to the correct parentNode | a Node object pointing to the correct parentNode | X | X | X | X |
Verify a Node object removed from the document has a null parentNode | a Node object with parentNode = null | X | X | X | X |
Verify a Document object's parentNode attribute is null | a document object with parentNode = null | X | X | X | X |
Verify a DocumentFragment object's parentNode attribute is null | a Document Fragment object with parentNode = null | X | X | X | X |
Verify an Attr object's parentNode attribute is null | an Attr object with parentNode = null | X | X | X | X |
Verify a Node object's childNodes attribute returns a NodeList containing the object's children | a node object with childNodes = a NodeList containing the object's children | X | X | X | X |
Verify a Node object's firstChild attribute returns null when there are no children | null | X | X | X | X |
Verify a Node object's firstChild attribute returns the object's first child | the object's first child | X | X | X | X |
Verify a Node object's lastChild attribute returns null when there are no children | null | X | X | X | X |
Verify a Node object's lastChild attribute returns the object's last child | the object's last child | X | X | X | X |
Verify a Node object's nextSibling attribute returns null when there are no more siblings | null | X | X | X | X |
Verify a Node object's nextSibling attribute returns the object's next sibling | he object's next sibling | X | X | X | X |
Verify a Node object's attributes attribute returns null when there are no attributes | null | X | X | X | X |
Verify a Node object's attributes attribute returns a NamedNodeMap of the object's attributes | a NamedNodeMap of the object's attributes | X | X | X | X |
Verify a Document object's ownerDocument attribute returns null | null | X | X | X | X |
Verify a Node object's ownerDocument attribute returns the Document object used to create the Node | the Document object used to create the Node | X | X | X | X |
Verify insertBefore(newChild, refChild) inserts the newChild before the refChild | a Node with newChild inserted before refChild | X | X | X | X |
Verify insertBefore(newChild, refChild) inserts the newChild at the end of the list of children when refChild is null | a Node with newChild at the end of the list of children | X | X | X | X |
Verify insertBefore(newChild, refChild) inserts the children of a DocumentFragment when the DocumentFragment is specified as newChild | a Node with the contents of the DocumentFragment inserted before refChild | X | X | X | X |
Verify insertBefore(newChild, refChild) replaces a Node if it already exists in the tree | a Node with refChild replaced by newChild | X | X | X | X |
Verify insertBefore(newChild, refChild) raises a HIERARCHY_REQUEST_ERR exception when the Node does not allow children of the type of newChild | HIERARCHY_REQUEST_ERR exception | X | X | X | |
Verify insertBefore(newChild, refChild) raises a HIERARCHY_REQUEST_ERR exception when newChild is an ancestor of the Node | HIERARCHY_REQUEST_ERR exception | X | X | X | |
Verify insertBefore(newChild, refChild) raises a WRONG_DOCUMENT_ERR exception when newChild was not created from the Document that created this Node | WRONG_DOCUMENT_ERR exception | X | X | X | |
Verify insertBefore(newChild, refChild) raises a NO_MODIFCATION_ALLOWED_ERR exception when the Node is readonly | NO_MODIFCATION_ALLOWED_ERR exception | X | X | X | |
Verify insertBefore(newChild, refChild) raises a NOT_FOUND_ERR exception when refChild is not a child of this Node | NOT_FOUND_ERR exception | X | X | X | |
Verify replaceChild(newChild, oldChild) replaces oldChild with newChild and returns oldChild | a Node where oldChild has been replaces with newChild | X | X | X | X |
Verify replaceChild(newChild, oldChild) replaces oldChild with newChild and returns oldChild when newChild is already in the tree | a Node where oldChild has been replaces with newChild | X | X | X | X |
Verify replaceChild(newChild, oldChild) raises a HIERARCHY_REQUEST_ERR exception when the Node does not allow children of the type of newChild | HIERARCHY_REQUEST_ERR exception | X | X | X | |
Verify replaceChild(newChild, oldChild) raises a HIERARCHY_REQUEST_ERR exception when newChild is an ancestor of the Node | HIERARCHY_REQUEST_ERR exception | X | X | X | |
Verify replaceChild(newChild, oldChild) raises a WRONG_DOCUMENT_ERR exception when newChild was not created from the Document that created this Node | WRONG_DOCUMENT_ERR exception | X | X | X | |
Verify replaceChild(newChild, oldChild) raises a NO_MODIFCATION_ALLOWED_ERR exception when the Node is readonly | NO_MODIFCATION_ALLOWED_ERR exception | X | X | X | |
Verify replaceChild(newChild, oldChild) raises a NOT_FOUND_ERR exception when refChild is not a child of this Node | NOT_FOUND_ERR exception | X | X | X | |
Verify removeChild(oldChild) removes oldChild from the list of children and returns it | a Node with oldChild removed | X | X | X | |
Verify removeChild(oldChild) raises a NO_MODIFCATION_ALLOWED_ERR exception when the Node is readonly | NO_MODIFCATION_ALLOWED_ERR exception | X | X | X | |
Verify removeChild(oldChild) raises a NOT_FOUND_ERR exception when refChild is not a child of this Node | NOT_FOUND_ERR exception | X | X | X | |
Verify appendChild(newChild) appends newChild to the end of this Node's children | a Node with newChild appended at the end of its children | X | X | X | |
Verify appendChild(newChild) appends the contents of newChild when it is a DocumentFragment | a Node with the contents of the DocumentFragment appended | X | X | X | |
Verify appendChild(newChild) raises a HIERARCHY_REQUEST_ERR exception when newChild is an ancestor of the Node | HIERARCHY_REQUEST_ERR exception | X | X | X | |
Verify appendChild(newChild) raises a WRONG_DOCUMENT_ERR exception when newChild was not created from the Document that created this Node | WRONG_DOCUMENT_ERR exception | X | X | X | |
Verify appendChild(newChild) raises a NO_MODIFCATION_ALLOWED_ERR exception when the Node is readonly | NO_MODIFCATION_ALLOWED_ERR exception | X | X | X | |
Verify hasChildNodes() returns true when this Node has children | True | X | X | X | X |
Verify hasChildNodes() returns false when this Node has no children | False | X | X | X | X |
Verify cloneNode(deep) returns a duplicate of this Node with parentNode set to null when deep is false or not specified | a duplicate of this Node with parentNode set to null | X | X | X | X |
Verify cloneNode(deep) returns a duplicate of this Node with parentNode set to null and the Node's entire subtree when deep is true | a duplicate of this Node with parentNode set to null and the Node's entire subtree | X | X | X | X |
Test Case | Expected Result |
HTML-Only Imp. | XML Imp. | Exception Handling Implementation |
Non-exception Handling Implementation |
Verify item(index) returns the item in the collection specified by index | the item in the collection specified by index | X | X | X | X |
Verify item(index) returns null when index is greater than or equal to the length of the NodeList | null | X | X | X | X |
Verify length returns the number of nodes in the list | the number of nodes in the list | X | X | X | X |
Test Case | Expected Result |
HTML-Only Imp. | XML Imp. | Exception Handling Implementation |
Non-exception Handling Implementation |
Verify getNamedItem(name) returns the Node specified by name | the Node specified by name | X | X | X | X |
Verify getNamedItem(name) returns null when the Node specified by name cannot be found | null | X | X | X | X |
Verify setNamedItem(arg) sets the specified Node and null is returned | a Node with the specified Node set | X | X | X | X |
Verify setNamedItem(arg) returns the original Node if arg is present | the orignal Node | X | X | X | X |
Verify setNamedItem(arg) raises a WRONG_DOCUMENT_ERR when the Nodes is readonly | WRONG_DOCUMENT_ERR exception | X | X | X | |
Verify setNamedItem(arg) raises a NO_MODIFICATION_ALLOWED_ERR when newAttr was created from a different document than the one that created the element. | NO_MODIFICATION_ALLOWED_ERR exception | X | X | X | |
Verify setNamedItem(arg) raises a INUSE_ATTRIBUTE_ERR when newAttr is already an attribute of another Element. | INUSE_ATTRIBUTE_ERR exception | X | X | X | |
Verify removeNamedItem(name) removes the Node specified by name and returns the Node | a Node with the specified Node removed | X | X | X | X |
Verify removeNamedItem(name) returns null when the Node specified by name does not exist | null | X | X | X | X |
Verify removeNamedItem(name) raises a NOT_FOUND_ERR if there is no Node with the name specified | NOT_FOUND_ERR exception | X | X | X | |
Verify item(index) returns the Node at the specified index | the Node specified by index | X | X | X | X |
Verify item(index) returns null when index is greater than or equal to the length of the NamedNodeMap | null | X | X | X | X |
Verify the length attribute returns one less than the number of Nodes in the NamedNodeMap | the number of Nodes in the NamedNodeMap - 1 | X | X | X | X |
Test Case | Expected Result |
HTML-Only Imp. | XML Imp. | Exception Handling Implementation |
Non-exception Handling Implementation |
Verify the data attribute returns the contents of the CharacterData object | the contents of the data attribute | X | X | X | X |
Verify a NO_MODIFICATION_ALLOWED exception is raised when the CharacterData object is readonly and an attempt to change the value is made | NO_MODIFICATION_ALLOWED exception | X | X | X | |
Verify a DOMSTRING_SIZE_ERR exception is raised when the data returned would exceed the storage of a DOMString variable | DOMSTRING_SIZE_ERR exception | X | X | X | |
Verify the length attribute returns the number of characters in the data attribute of the CharacterData object | the number of characters in the data attribute of the CharacterData object | X | X | X | X |
Verify substringData(offset, count) returns the value of the data attribute from offset to offset + count | the value of the data attribute from offset to offset + count | X | X | X | X |
Verify substringData(offset, count) returns the value of the data attribute to the end of the string when offset + count is greater than length | the value of the data attribute to the end of the string | X | X | X | X |
Verify substringData(offset, count) raises an INDEX_SIZE_ERR exception when offset is negative | INDEX_SIZE_ERR exception | X | X | X | |
Verify substringData(offset, count) raises an INDEX_SIZE_ERR exception when offset is greater than length | INDEX_SIZE_ERR exception | X | X | X | |
Verify substringData(offset, count) raises an INDEX_SIZE_ERR exception when count is negative | INDEX_SIZE_ERR exception | X | X | X | |
Verify substringData(offset, count) raises a DOMSTRING_SIZE_ERR when the specified range does not fit into a DOMString | DOMSTRING_SIZE_ERR exception | X | X | X | |
Verify appendData(arg) appends arg to the data attribute | data + arg | X | X | X | X |
Verify appendData(arg) raises a NO_MODIFICATION_ALLOWED exception when the CharacterData object is readonly and an attempt to change the value is made | NO_MODIFICATION_ALLOWED exception | X | X | X | |
Verify insertData(offset, arg) inserts arg at offset | a string with arg inserted at the offset | X | X | X | |
Verify insertData(offset, arg) raises a NO_MODIFICATION_ALLOWED exception when the CharacterData object is readonly and an attempt to change the value is made | NO_MODIFICATION_ALLOWED exception | X | X | X | |
Verify insertData(offset, arg) raises an INDEX_SIZE_ERR exception when offset is negative | INDEX_SIZE_ERR exception | X | X | X | |
Verify insertData(offset, arg) raises an INDEX_SIZE_ERR exception when offset is greater than length | INDEX_SIZE_ERR exception | X | X | X | |
Verify deleteData(offset, count) removed the number of characters specified by count at offset | a string with the number of characters specified by count at offset removed | X | X | X | |
Verify deleteData(offset, count) raises a NO_MODIFICATION_ALLOWED exception when the CharacterData object is readonly and an attempt to change the value is made | NO_MODIFICATION_ALLOWED exception | X | X | X | |
Verify deleteData(offset, count) raises an INDEX_SIZE_ERR exception when offset is negative | INDEX_SIZE_ERR exception | X | X | X | |
Verify deleteData(offset, count) raises an INDEX_SIZE_ERR exception when offset is greater than length | INDEX_SIZE_ERR exception | X | X | X | |
Verify replaceData(offset, count, arg) replaces data from offset to count with arg | a string with data replaced from offset to count with arg | X | X | X | X |
Verify replaceData(offset, count, arg) replaces data from offset to the end of data with arg when offset + count is greater than length | a string with data replaces from offset to the end of the string | X | X | X | X |
Verify replaceData(offset, count, arg) raises an INDEX_SIZE_ERR exception when offset is negative | INDEX_SIZE_ERR exception | X | X | X | |
Verify replaceData(offset, count, arg) raises an INDEX_SIZE_ERR exception when offset is greater than length | INDEX_SIZE_ERR exception | X | X | X | |
Verify replaceData(offset, count, arg) raises an INDEX_SIZE_ERR exception when count is negative | INDEX_SIZE_ERR exception | X | X | X | |
Verify replaceData(offset, count, arg) raises a NO_MODIFICATION_ALLOWED exception when the CharacterData object is readonly and an attempt to change the value is made | NO_MODIFICATION_ALLOWED exception | X | X | X |
Test Case | Expected Result |
HTML-Only Imp. | XML Imp. | Exception Handling Implementation |
Non-exception Handling Implementation |
Verify the parentNode attribute on an Attr Node is null | an Attr with parentNode = null | X | X | X | X |
Verify the previousSibling attribute on an Attr Node is null | an Attr with previousSibling = null | X | X | X | X |
Verify the nextSibling attribute on an Attr Node is null | an Attr with nextSibling = null | X | X | X | X |
Verify the name attribute of an Attr Node is the name specified when it was created | an Attr with the specified name | X | X | X | X |
Verify the specified attribute on the Attr Node is true when a value has been specified | True | X | X | X | X |
Verify the specified attribute on the Attr Node is false when a value has not been specified | False | X | X | X | X |
Verify deleting an attribute with a default value resets the nodeValue to its default value | an Attr with a default value | X | X | X | X |
Verify setting the value attribute creates a Text Node with the unparsed contents of the string | an Attr with the value attribute set to the specified unparsed string | X | X | X | X |
Verify retrieving the value attribute returns a string | an Attr with the value attribute | X | X | X | X |
Test Case | Expected Result |
HTML-Only Imp. | XML Imp. | Exception Handling Implementation |
Non-exception Handling Implementation |
Verify the tagName attribute returns the element's tag name | the element's tagName | X | X | X | X |
Verify getAttribute(name) returns the Attr value as a string | the Attr value as a string | X | X | X | X |
Verify getAttribute(name) returns null when the Attr does not have a value | null | X | X | X | X |
Verify setAttribute(name, value) sets the value of the named Attr | a Node with the named Attr set | X | X | X | X |
Verify setAttribute(name, value) replaces the value of the named Attr when it exists | a Node with the named Attr replaced | X | X | X | X |
Verify setAttribute(name, value) raises an INVALID_CHARACTER_ERR exception when the name specified contains an invalid character | INVALID_CHARACTER_ERR exception | X | X | X | |
Verify setAttribute(name, value) raises a NO_MODIFICATION_ERR exception when the node is readonly. | NO_MODIFICATION_ERR exception | X | X | X | |
Verify removeAttribute(name) removes the named Attr from the Node | a Node with the named Attr removed | X | X | X | X |
Verify removeAttribute(name) raises a NO_MODIFICATION_ERR exception when the node is readonly. | NO_MODIFICATION_ERR exception | X | X | X | |
Verify getAttributeNode(name) returns the Attr node specified | the specified Attr | X | X | X | X |
Verify getAttributeNode(name) returns null if the Node specified does not exist | null | X | X | X | X |
Verify setAttributeNode(newAttr) sets the Attr Node on the object | a Node with the specified Attr set | X | X | X | X |
Verify setAttributeNode(newAttr) replaces the specified Attr Node on the object and returns the original Attr if the Attr exists | a Node with the specified Attr replaced | X | X | X | X |
Verify setAttributeNode(newAttr) raises a WRONG_DOCUMENT_ERR when the Nodes is readonly | WRONG_DOCUMENT_ERR exception | X | X | X | |
Verify setAttributeNode(newAttr) raises a NO_MODIFICATION_ALLOWED_ERR when newAttr was created from a different document than the one that created the element. | NO_MODIFICATION_ALLOWED_ERR exception | X | X | X | |
Verify setAttributeNode(newAttr) raises a INUSE_ATTRIBUTE_ERR when newAttr is already an attribute of another Element. | INUSE_ATTRIBUTE_ERR exception | X | X | X | |
Verify removeAttributeNode(oldAttr) removes the specified Attr from the Node | a Node with the specified Attr removed | X | X | X | X |
Verify removeAttributeNode(oldAttr) raises a NO_MODIFICATION_ERR exception when the node is readonly. | NO_MODIFICATION_ERR exception | X | X | X | |
Verify removeAttributeNode(oldAttr) raises a NOT_FOUND_ERR exception when oldAttr is not an attribute of the Element | NOT_FOUND_ERR exception | X | X | X | |
Verify getElementsByTagName(name) returns a NodeList object containing all of the Elements with the specified name | a NodeList object containing all of the Elements with the specified name | X | X | X | X |
Verify getElementsByTagName(name) returns a NodeList object containing all of the Elements in the Element tree when the specified name is "*" | a NodeList object containing all of the Elements in the Element tree | X | X | X | X |
Verify normalize() combines all adjacent Text nodes in the Element's subtree | a TextNode with all adjacent Text nodes in the Element's subtree | X | X | X | X |
Test Case | Expected Result |
HTML-Only Imp. |
XML Imp. |
Exception Handling Implementation |
Non-exception Handling Implementation |
Verify splitText(offset) returns a new TextNode containing all characters after offset | a new TextNode containing all characters after offset | X | X | X | X |
Verify splitText(offset) maintains the original TextNode containing all characters up to offset | the original TextNode containing all characters up to offset | X | X | X | X |
Verify splitText(offset) raises an INDEX_SIZE_ERR exception when the offset is negative | INDEX_SIZE_ERR exception | X | X | X | |
Verify splitText(offset) raises an INDEX_SIZE_ERR exception when the offset is greater than the TextNode data | INDEX_SIZE_ERR exception | X | X | X | |
Verify splitText(offset) raises a NO_MODIFICATION_ALLOWED_ERR when this Node is readonly | NO_MODIFICATION_ALLOWED_ERR exception | X | X | X |
No test cases