[xmljs-users] 2 bugs in empty tag handling with DOM
Brought to you by:
djoham,
witchhunter
From: <Rob...@Hy...> - 2004-03-08 18:40:35
|
1) EMPTY ELEMENTS NOT ADDED - In DOMImplementation::_parseLoop, in the "else if(iEvt == XMLP._ELM_EMP)" block, the call to "iNodeParent.appendChild(iNode);" is only done in the "if (!this.namespaceAware)" block. If pushed this single line after the entire if-then-else. 2) EMPTY ELEMENT SERIALIZATION INVALID - the last few lines of DOMElement.toString should be like this: ret += "<" + this.nodeName + ns + attrs; if (this.childNodes.length > 0) { ret += ">"; ret += this.childNodes.toString(); ret += "</" + this.nodeName + ">"; } else { ret += " />"; } ************************************************************************ If you have received this e-mail in error, please delete it and notify the sender as soon as possible. The contents of this e-mail may be confidential and the unauthorized use, copying, or dissemination of it and any attachments to it, is prohibited. Internet communications are not secure and Hyperion does not, therefore, accept legal responsibility for the contents of this message nor for any damage caused by viruses. The views expressed here do not necessarily represent those of Hyperion. For more information about Hyperion, please visit our Web site at www.hyperion.com |