getElementsByTagNameNS08public final class getElementsByTagNameNS08 extends org.w3c.domts.DOMTestCase Element.getElementsByTagNameNS('*','*') should return all child
elements. There is some contention on whether this should match
unqualified elements, this test reflects the interpretation that
'*' should match elements in all namespaces and unqualified elements.
Derived from getElementsByTagNameNS01 which tests similar functionality
on the Document interface. |
Constructors Summary |
---|
public getElementsByTagNameNS08(org.w3c.domts.DOMTestDocumentBuilderFactory factory)Constructor.
super(factory);
//
// check if loaded documents are supported for content type
//
String contentType = getContentType();
preload(contentType, "staffNS", false);
|
Methods Summary |
---|
public java.lang.String | getTargetURI()Gets URI that identifies the test.
return "http://www.w3.org/2001/DOM-Test-Suite/level2/core/getElementsByTagNameNS08";
| public static void | main(java.lang.String[] args)Runs this test from the command line.
DOMTestCase.doMain(getElementsByTagNameNS08.class, args);
| public void | runTest()Runs the test case.
Document doc;
Element docElem;
NodeList newList;
doc = (Document) load("staffNS", false);
docElem = doc.getDocumentElement();
newList = docElem.getElementsByTagNameNS("*", "*");
assertSize("listSize", 36, newList);
|
|