<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Please note that this was fixed in master.<br><div apple-content-edited="true">

<div><br></div><div>Best regards,</div><div>Bart<br clear="all"><div><div dir="ltr"><div><br></div><span style="font-family:arial;font-size:small">Bart van den Eijnden</span><br style="font-family:arial;font-size:small"><span style="font-family:arial;font-size:small">Front End Software Engineer | <a href="http://boundlessgeo.com/">Boundless</a></span><br style="font-family:arial;font-size:small">

<a href="mailto:bartvde@boundlessgeo.com" target="_blank" style="color:rgb(17,85,204);font-family:arial;font-size:small">bartvde@boundlessgeo.com</a><br style="font-family:arial;font-size:small"><a href="tel:917-460-7207" value="+19174607207" target="_blank" style="color:rgb(17,85,204);font-family:arial;font-size:small">1-877-673-6436</a><br style="font-family:arial;font-size:small">

<a href="http://twitter.com/boundlessgeo/" style="color:rgb(17,85,204);font-family:arial;font-size:small">@boundlessgeo</a><div><br><div class="gmail_extra" style="font-family:arial;font-size:small"><a href="http://boundlessgeo.com"><img src="http://boundlessgeo.com/wp-content/uploads/files/boundless_sig.png"></a><br>

</div></div></div></div>
</div></div>


<br><div style=""><div>On 20 Nov 2014, at 14:09, Ralph Dell <<a href="mailto:RDell@CatawbaCountyNC.gov">RDell@CatawbaCountyNC.gov</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div lang="EN-US" link="blue" vlink="purple" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><div class="Section1" style="page: Section1;"><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;"><span style="color: rgb(31, 73, 125);">I believe this post may help<o:p></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;"><span style="color: rgb(31, 73, 125);"> </span></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;"><span style="color: rgb(31, 73, 125);"><a href="http://osgeo-org.1560.x6.nabble.com/WFS-and-IE-11-td5090636.html" style="color: purple; text-decoration: underline;">http://osgeo-org.1560.x6.nabble.com/WFS-and-IE-11-td5090636.html</a><o:p></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;"><span style="color: rgb(31, 73, 125);"> </span></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;"><span style="color: rgb(31, 73, 125);">I have taken the code written by Stephen Battey at the bottom of the post and load that after I load OL.<o:p></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;"><span style="color: rgb(31, 73, 125);">That fixed my GetFeatureInfo problem on IE11<o:p></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;"><span style="color: rgb(31, 73, 125);"> </span></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;"><span style="color: rgb(31, 73, 125);">Ralph Dell<o:p></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;"><span style="color: rgb(31, 73, 125);"> </span></div><div><div style="border-style: solid none none; border-top-color: rgb(181, 196, 223); border-top-width: 1pt; padding: 3pt 0in 0in;"><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;"><b><span style="font-size: 10pt; font-family: Tahoma, sans-serif;">From:</span></b><span style="font-size: 10pt; font-family: Tahoma, sans-serif;"><span class="Apple-converted-space"> </span><a href="mailto:openlayers-users-bounces@lists.osgeo.org" style="color: purple; text-decoration: underline;">openlayers-users-bounces@lists.osgeo.org</a><span class="Apple-converted-space"> </span>[<a href="mailto:openlayers-users-bounces@lists.osgeo.org" style="color: purple; text-decoration: underline;">mailto:openlayers-users-bounces@lists.osgeo.org</a>]<span class="Apple-converted-space"> </span><b>On Behalf Of<span class="Apple-converted-space"> </span></b>Staav Per-Anders<br><b>Sent:</b><span class="Apple-converted-space"> </span>Thursday, November 20, 2014 3:31 AM<br><b>To:</b><span class="Apple-converted-space"> </span><a href="mailto:openlayers-users@lists.osgeo.org" style="color: purple; text-decoration: underline;">openlayers-users@lists.osgeo.org</a><br><b>Subject:</b><span class="Apple-converted-space"> </span>[OpenLayers-Users] GetFeaturInfo call failing in IE11<o:p></o:p></span></div></div></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;"><o:p> </o:p></div><pre style="margin: 0in 0in 0.0001pt; font-size: 10pt; font-family: 'Courier New';"><span lang="EN-GB" style="font-family: Arial, sans-serif;">I am new to this mailing list, but we have been using OpenLayers for a while. <o:p></o:p></span></pre><pre style="margin: 0in 0in 0.0001pt; font-size: 10pt; font-family: 'Courier New';"><span lang="EN-GB" style="font-family: Arial, sans-serif;"> </span></pre><pre style="margin: 0in 0in 0.0001pt; font-size: 10pt; font-family: 'Courier New';"><span lang="EN-GB" style="font-family: Arial, sans-serif;">Currently I am struggling with a problem with GetFeatureInfo and IE11 and I decided to share my experiences to hopefully help some other poor fellow to have to do the same analysis.<o:p></o:p></span></pre><pre style="margin: 0in 0in 0.0001pt; font-size: 10pt; font-family: 'Courier New';"><span lang="EN-GB" style="font-family: Arial, sans-serif;"> </span></pre><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;"><span lang="EN-GB" style="font-family: Arial, sans-serif;">I am using 2.13.1 of OpenLayers and GeoServer 2.4 and have applied a couple of fixes to get it to work in IE11 for WFS calls and similar. Unfortunately I cannot sort out the GetFeatureInfo calls.<o:p></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;"><span lang="EN-GB" style="font-family: Arial, sans-serif;"> </span></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;"><span lang="EN-GB" style="font-family: Arial, sans-serif;">If I IE11 in Edge mode the call to OpenLayers.Format.XML.prototype.read.apply(this, [data]); eventually resolve into xmldom.loadXML(text) call failing and then  a failed call to new DOMParser().parseFromString(text, 'text/xml')<o:p></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;"><span lang="EN-GB" style="font-family: Arial, sans-serif;"> </span></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;"><span lang="EN-GB" style="font-family: Arial, sans-serif;">If I use IE11 and emulate previous versions (aka Quirks mode) the call to loadXML succeed even through I used the debugger to verify that in both cases the actual text sent into the function is JSON<o:p></o:p></span></div><p class="MsoNormal" style="margin: 7.5pt; font-size: 11pt; font-family: Calibri, sans-serif;"><span lang="EN-GB" style="font-size: 12pt; font-family: 'Courier New';">"{\"type\":\"FeatureCollection\",\"features\":[{\"type\":\"Feature\",\"id\":\"LVD_FUNCTION_OBJECT_VIEW.3010124\",\"geometry\":{\"type\":\"LineString\",\"coordinates\":[[154111.811179288,6578422.01790236,0],[154111.295167272,6578428.93449788,0],[154112.323003077,6578434.88642851,0],[154119.436625185,6578454.94173547,0],[154127.927454092,6578478.22225933,0],[154130.750467693,6578486.2847629,0],[154131.816409608,6578490.96371858,0],[154130.856751895,6578508.97999902,0]]},\"geometry_name\":\"GEOLOC\",\"properties\":{\"FUNCTION_OBJECT_NO\":9112,\"FUNCTION_OBJECT_NAME\":\"Västra Terrassrampen (1) (Norra Järngraven - Katarinavägen) (050508 - 020644)\",\"TRAFFIC_TYPES\":1}}],\"crs\":{\"type\":\"EPSG\",\"properties\":{\"code\":\"3011\"}}}"<o:p></o:p></span></p><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;"><span lang="EN-GB" style="font-family: Arial, sans-serif;">It seems very likely the problem is that IE in Quirks mode accept loadXML even when the input is JSON, but will reject such in strict mode.<o:p></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;"><span lang="EN-GB" style="font-family: Arial, sans-serif;"> </span></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;"><span lang="EN-GB" style="font-family: Arial, sans-serif;">I will look into using a<span class="Apple-converted-space"> </span></span><span class="tag"><span lang="EN-GB"><meta</span></span><span class="pln"><span lang="EN-GB"> </span></span><span class="atn"><span lang="EN-GB">http-equiv</span></span><span class="pun"><span lang="EN-GB">=</span></span><span class="atv"><span lang="EN-GB">"X-UA-Compatible"</span></span><span class="pln"><span lang="EN-GB"> </span></span><span class="atn"><span lang="EN-GB">content</span></span><span class="pun"><span lang="EN-GB">=</span></span><span class="atv"><span lang="EN-GB">"IE=10"</span></span><span class="pln"><span lang="EN-GB"> </span></span><span class="tag"><span lang="EN-GB">/><span class="Apple-converted-space"> </span></span></span><span lang="EN-GB" style="font-family: Arial, sans-serif;">directive or something similar to make sure Quirks mode is enabled for my OpenLayers application.<o:p></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;"><span lang="EN-GB" style="font-family: Arial, sans-serif;"> </span></div><div class="MsoNormal" align="center" style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; text-align: center;"><span lang="SV" style="font-family: Arial, sans-serif;"><hr size="7" width="100%" noshade="" align="center" style="color: rgb(0, 92, 132);"></span></div><table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0" width="960" style="width: 8in;"><tbody><tr style="height: 47.55pt;"><td width="354" valign="top" style="width: 212.65pt; padding: 3pt; height: 47.55pt;"><p class="MsoNormal" style="margin: 0in 0in 3pt; font-size: 11pt; font-family: Calibri, sans-serif;"><b><span style="font-size: 10pt; font-family: Arial, sans-serif; color: rgb(31, 73, 125);">Per-Anders Staav<br></span></b><span style="font-size: 10pt; font-family: Arial, sans-serif; color: rgb(31, 73, 125);">Systemutvecklare<br>Mobil: 0768-44 10 36<br></span><span lang="NO-BOK" style="font-size: 10pt; font-family: Arial, sans-serif;"><a href="mailto:per-anders.staav@norconsult.com" style="color: purple; text-decoration: underline;"><span lang="SV">per-anders.staav@norconsult.com</span></a></span><span style="font-size: 10pt; font-family: Arial, sans-serif;"><o:p></o:p></span></p></td><td width="284" valign="top" style="width: 170.1pt; padding: 3pt; height: 47.55pt;"><p class="MsoNormal" style="margin: 0in 0in 3pt; font-size: 11pt; font-family: Calibri, sans-serif;"><b><span style="font-size: 10pt; font-family: Arial, sans-serif; color: rgb(31, 73, 125);">Norconsult Astando AB<br></span></b><span style="font-size: 10pt; font-family: Arial, sans-serif; color: rgb(31, 73, 125);">Hantverkargatan 5K<br>112 21 Stockholm</span><span style="font-size: 10pt; font-family: Arial, sans-serif;"><br><a href="http://www.astando.se/" style="color: purple; text-decoration: underline;">www.astando.se</a><o:p></o:p></span></p></td><td width="322" valign="top" style="width: 193.25pt; padding: 0in; height: 47.55pt;"><p class="MsoNormal" style="margin: 0in 0in 3pt; font-size: 11pt; font-family: Calibri, sans-serif;"><span style="font-size: 10pt; font-family: Arial, sans-serif;"><span><image001.png></span><b><span style="color: rgb(31, 73, 125);"><o:p></o:p></span></b></span></p></td></tr></tbody></table><div class="MsoNormal" align="center" style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; text-align: center;"><span lang="SV" style="font-size: 6pt; font-family: Arial, sans-serif;"><hr size="5" width="100%" noshade="" align="center" style="color: rgb(126, 159, 66);"></span></div><div class="MsoNormal" align="center" style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; text-align: center;"><span lang="SV" style="font-size: 6pt; font-family: Arial, sans-serif;"><hr size="12" width="100%" noshade="" align="center" style="color: rgb(158, 115, 64);"></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;"><span lang="SV"> </span></div></div>_______________________________________________<br>Users mailing list<br><a href="mailto:Users@lists.osgeo.org" style="color: purple; text-decoration: underline;">Users@lists.osgeo.org</a><br><a href="http://lists.osgeo.org/mailman/listinfo/openlayers-users" style="color: purple; text-decoration: underline;">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a></div></blockquote></div><br></body></html>