Hi,
We have encountered a problem using new CRM Online environment with IE10,
in which setting the compatibility mode
was not solving the problem.
From what i read only IE10 does not support XPATH, and with it, the following code, when reading xml retrieved from fetch
var entityNodes = resultXml.selectNodes('//a:Attributes/a:KeyValuePairOfstringanyType');
would throw an error like
Object doesn't support property or method 'selectNodes'
As i mentioned the compatibility mode did not help,
as the same code on adifferent organization on CRM online was not throwing any errors.
When i investigated further i noticed the for the two organizations different Document Mode was forced on the IE10.
For the organization in which this was not working, Document Mode was Standards. From what i understand, the first line in the code is forcing the Document Mode in IE. And it is the following line
<!DOCTYPE html PUBLIC "">
(this is the first line in the view source from developer tools of a page in CRM)
and from the organization in which code was running OK, image below
<!DOCTYPE html >
In the second organization, the Documents mode forced on the page is IE9 standards.
If in the previous organization you set the Document mode to IE9 standards, the code was working correctly.
When i investigated further i found that the Document Mode is forced to the browser (IE), from the web application itself, through the <!DOCTYPE at the beginning of the file. In this case for the organization that not working it was
<!DOCTYPE html PUBLIC ""> , which from what i read online, is not defined, and the IE in this case does not know which Document mode to force.
This issue has happened only on two new CRM online organizations (Trials) on which I have installed a managed solution and tested this, and seems to happen only on these two.
On other environments which were running the same managed solution earlier did not have any problems.
I am doubting that its a problem with new organizations only, and that maybe they are different in version.
This is a problem as to fix this in code, requires recoding of hundreds java scripts functions which do not support XPATH and selectNodes function, and use the DOMParser instead
The internet explorer version is
10.0.9200.16576
(Sorry if some of the text is not understandable, as i am new to the forum i am restricted from posting images or links in posts.)