[xmljs-users] DOMDocument.importNode() and DOMNode.cloneNode() attribute problems
Brought to you by:
djoham,
witchhunter
|
From: Stepan R. <xm...@no...> - 2004-03-05 00:46:51
|
DOMDocument.importNode() and DOMNode.cloneNode() do not work for nodes whose
attributes contain spaces or other "unexpected" characters. I.e. they'll fail
importing or cloning the following node:
<NODE foo="hello world">
</NODE>
The problem seems to be in DOMElement.prototype.setAttributeNS(). The line that
says:
if (!this.ownerDocument.implementation._isValidName(value)) {
should actually say:
if (!this.ownerDocument.implementation._isValidString(value)) {
- Stepan
--
Stepan Riha
|