I'll need to revisit this. Its purpose is to both avoid redundant
namespace declarations as well as avoid internal memory corruption of ns
nodes in documents.
iirc it should only be walking back up the tree to a node that might
have declared the namespace being referenced.
Rob
On 3/14/19 12:34
I note that there was some recent discussion about fixing DOMNameSpaceNode
on this list. I'd like to bring up a (perhaps) related issue: the
dom_reconcile_ns() function which is called whenever a new namespaced node
(for example, created with Document#createElementNS) is inserted into the
tree.