Looks like a bug to me. If the element redefines the (potentially empty) prefix that its namespace URI is mapped to by the parent nodes, then it should not use that prefix.
Looks like a bug to me. If the element redefines the (potentially empty) prefix that its namespace URI is mapped to by the parent nodes, then it should not use that prefix.