M
Max
Hello everyone!
i would want to know if the getElementsByTagName() function starts to find
the elements from documentElement comprising the same documentElement.
XML example:
<?xml version="1.0"?>
<exslt:module xmlns:exslt="http://exslt.org/documentation"
xmlns="http://default-ns-outter" version="1" prefix="str" exslt:foo="bah" >
....
</exslt:module>
Javascript code:
var dom = new DOMImplementation();
....
var doc = dom.doc.getDocumentElement();
var nodeList = doc.getElementsByTagName("exslt:module");
Does getElementsByTagName() function returns the first element
"exslt:module"?
Has getElementsByTagNameNS('http://exslt.org/documentation', 'module')
function the same behavior?
And getElementById(): same or different?
Best regards,
Max
i would want to know if the getElementsByTagName() function starts to find
the elements from documentElement comprising the same documentElement.
XML example:
<?xml version="1.0"?>
<exslt:module xmlns:exslt="http://exslt.org/documentation"
xmlns="http://default-ns-outter" version="1" prefix="str" exslt:foo="bah" >
....
</exslt:module>
Javascript code:
var dom = new DOMImplementation();
....
var doc = dom.doc.getDocumentElement();
var nodeList = doc.getElementsByTagName("exslt:module");
Does getElementsByTagName() function returns the first element
"exslt:module"?
Has getElementsByTagNameNS('http://exslt.org/documentation', 'module')
function the same behavior?
And getElementById(): same or different?
Best regards,
Max