Thanks! This will be fixed in the forthcoming 3.1 (AKA XPath) release.
David
--- Stepan Riha <xm...@no...> wrote:
> 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
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by: IBM Linux Tutorials
> Free Linux tutorial presented by Daniel Robbins, President and CEO of
> GenToo technologies. Learn everything from fundamentals to system
> administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
> _______________________________________________
> xmljs-users mailing list
> xml...@li...
> https://lists.sourceforge.net/lists/listinfo/xmljs-users
__________________________________
Do you Yahoo!?
Yahoo! Search - Find what youre looking for faster
http://search.yahoo.com
|