Skip to content

Attribute doubling in XHTML root element #25

Open
@technosophos

Description

@technosophos

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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions