Author: manaRH
Date: 2011-01-22 11:21:51 -0500 (Sat, 22 Jan 2011)
New Revision: 14015
Modified:
branches/community/Seam_2_2/examples/seambay/view/test.js
Log:
JBSEAM-4766 - fixed extraction of conversation ID in MS Internet Explorer 7/8 -
node.baseName instead of node.localName is in MS IE
Modified: branches/community/Seam_2_2/examples/seambay/view/test.js
===================================================================
--- branches/community/Seam_2_2/examples/seambay/view/test.js 2011-01-21 14:54:09 UTC (rev
14014)
+++ branches/community/Seam_2_2/examples/seambay/view/test.js 2011-01-22 16:21:51 UTC (rev
14015)
@@ -330,9 +330,12 @@
{
for (var i = 0; i < doc.documentElement.childNodes.length; i++)
{
- var node = doc.documentElement.childNodes.item(i);
- if (node.localName == "Header")
- headerNode = node;
+ var node = doc.documentElement.childNodes.item(i);
+ if (node.localName == "Header" || node.baseName == "Header")
+ {
+ headerNode = node;
+ break;
+ }
}
}
@@ -341,7 +344,7 @@
for (var i = 0; i < headerNode.childNodes.length; i++)
{
var node = headerNode.childNodes.item(i);
- if (node.localName == "conversationId")
+ if (node.localName == "conversationId" || node.baseName ==
"conversationId")
{
return node.firstChild.nodeValue;
}
Show replies by date