Skip to content
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

Fix XML serialize and xml_eql in IE9 #734

Merged
merged 2 commits into from
May 27, 2013
Merged

Fix XML serialize and xml_eql in IE9 #734

merged 2 commits into from
May 27, 2013

Conversation

bartvde
Copy link
Member

@bartvde bartvde commented May 24, 2013

This was brought up by @tschaub in #726

Use the xml property instead in IE for serializing XML.
The xml_eql tests were failing in IE9 on a difference between null and an
empty string for namespaceURI of attributes, this difference is not
relevant to our testing so make sure we ignore.

Use the xml property instead in IE for serializing XML.
The xml_eql tests were failing in IE9 on a difference between null and an
empty string for namespaceURI of attributes, this difference is not
relevant to our testing so make sure we ignore.
if (uri2 == '') {
uri2 = null;
}
expect(uri1).to.equal(uri2);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of the two if blocks, you could probably either do

expect(uri1).to.be(uri2);

or

expect(uri1 || null).toBe(uri2 || null);

@ahocevar
Copy link
Member

Please see above comment. Other than that, this looks good and can be merged when the above is addressed.

bartvde pushed a commit that referenced this pull request May 27, 2013
Fix XML serialize and xml_eql in IE9 (r=@ahocevar)
@bartvde bartvde merged commit 9968a5f into openlayers:master May 27, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants