Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIX] compiler: fix xmlns attribute not being set correctly in firefox
Firefox will not serialize the xmlns attributes of node inside XMLDocuments, see https://bugzilla.mozilla.org/show_bug.cgi?id=175946 To work around this issue, we replace the xmlns attribute (which is present but won't be serialized) with a different attribute before serializing, and then replace that attribute back with xmlns after serialization. While this is not perfect, the risk of collision with user content inside a template is minimal.
- Loading branch information