-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IE11 Bug: Namespaces serialized incorrectly in XML #42
Comments
which version of jxon are you using? |
The version is |
I also ran into this issue when trying to generate GPX data using the |
This works around JXON issue Project-OSRM#42 [1] by repairing the invalid XML name space declarations in the GPX data and should thus yield usable GPX files in IE11, too. [1] tyrasd/jxon#42
This works around JXON issue Project-OSRM#42 [1] by repairing the invalid XML name space declarations in the GPX data and should thus yield usable GPX files in IE11, too. [1] tyrasd/jxon#42
This works around tyrasd/jxon#42 [1] by repairing the invalid XML name space declarations in the GPX data and should thus yield usable GPX files in IE11, too. [1] tyrasd/jxon#42
PR #53 adds some additional namespace support, can someone with an IE setup please test and see if it also fixes this issue? |
@nrenner Hello! Thank you for attempting to fix this problem. I've found a couple of things with your PR:
So this PR is a step towards fixing my original issue, but the way it affects serialization for both JSON and XML might be cause for concern for other people. |
That's because it's ordered like that in the input XML and the PR sets the namespace attributes explicitly. The current master version relies on the XML serializer to add the
My guess would be, that those namespaces are not used in the document and are therefore removed by the XML serializer, probably nothing we can do about it. My question would rather be why they are added in the original XML? |
Hi there @tyrasd,
Great library, thanks a lot!
Here's an example that works perfectly in Chrome 58 and Firefox 53:
Output:
In IE11, the same code produces identical JSON, but the XML looks like this:
So there are these empty
xmlns:NSx=""
namespaces and the actual namespaces are prefixed incorrectly.Is there a way to get IE11 to serialize namespaces correctly?
The text was updated successfully, but these errors were encountered: