According to the docs for $node->cloneNode, it's behaviour required by the DOM spec (for $node->cloneNode, the function $reader->copyCurrentNode mirrors).
In reply to Re: copyCurrentNode in XML::LibXML::Reader will add xmlns attribute
by ikegami
in thread copyCurrentNode in XML::LibXML::Reader will add xmlns attribute
by mjfan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |