You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
XMLSerializer: Keep redundant but harmless default namespace declarations
Since crrev.com/632142, XMLSerializer has dropped redundant xmlns="..."
declarations. It matches to IE, Edge, and DOM P&S standard. This CL
reverts the behaviro to unbreak existing applications. The restored
behavior matches to Firefox and Safari.
* MarkupAccumulator::AppendElement():
Even if ignore_namespace_definition_attribute_ is set, we drop a
xmlns="..." only if its value is inconsistent with element's
namespace.
* MarkupAccumulator::AppendStartTagOpen():
if local_default_namespace is "" and ns is null, do not emit xmlns="".
This avoids to serialize xmlns="" twice.
Bug: w3c/DOM-Parsing#47
Bug: 940204
Change-Id: I2978ddc9a3f9511d227a9a1b902f1811ac1c3c07
0 commit comments