Fixed namespaced attributes exception in IE11 (and below probably). #14
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The exception is fixed, but namespaced attributes in IE (and below) are now added in the old incorrect way.
I think there is a way to properly add namespaced attributes to ActiveXObjects but that seemed rather cumbersome to find out. While Internet Explorer is still alive I'll just re-parse the .Get(1) XML string in my app (because IE11 does actually have a DOMParser). (Alternatively you could decide to let .Get(0) do this if
GetMode() === 2 && typeof window.DOMParser !== 'undefined'
)Also made tests more IE11 friendly as .Get(1) returns some additional whitespace in IE11.
Last PR for a while, I hope!
I took the liberty of changing the version to 1.1.2 as well.