Open
Description
Under some circumstances, reading an XHTML document and then writing it out results in the doubling of certain special-use attributes on the root element -- namely, xmlns
and xml:lang
.
This can be reproduced in plain DOM with something like this:
$doc = new DomDocument("1.0");
$doc->loadHTML($_html);
print $doc->saveXML();
It is unclear whether this has any truly negative side-effects, but it is incorrect nonetheless. Since it does appear to be a DOM bug, for QueryPath to fix it, it would have to be done as a post-processing step.