createElementNS
Brought to you by:
mbatsis
it might be nice to have a wrapper built in for IE
which does not support DOM level 2 createElementNS.
currently i use this:
function createElementNS (namespaceURI, elementName,
ownerDocument) {
var element = null;
if (typeof ownerDocument.createElementNS != 'undefined') {
element = ownerDocument.createElementNS(namespaceURI,
elementName);
}
else if (typeof ownerDocument.createNode != 'undefined') {
element = ownerDocument.createNode(1, elementName,
namespaceURI);
}
return element;
}