Author: croberts
Date: 2011-11-04 13:51:54 +0000 (Fri, 04 Nov 2011)
New Revision: 5116
Modified:
branches/noflash/wooly/resources/wooly.js
Log:
Fixing a bug in executeJS for IE. Previously, we were only grabbing node.textContent as
the payload for the script tag. That works in FF and Chrome, but for IE, the payload is
in node.text. We will now check both places and take whichever exists.
Modified: branches/noflash/wooly/resources/wooly.js
===================================================================
--- branches/noflash/wooly/resources/wooly.js 2011-11-04 13:46:52 UTC (rev 5115)
+++ branches/noflash/wooly/resources/wooly.js 2011-11-04 13:51:54 UTC (rev 5116)
@@ -279,7 +279,11 @@
while (child) {
if (child.nodeType == 1 && child.nodeName == "script") {
var oScript = document.createElement("script");
- oScript.text = child.textContent;
+ if(child.textContent) {
+ oScript.text = child.textContent;
+ } else {
+ oScript.text = child.text; // for IE
+ }
document.getElementsByTagName("head").item(0).appendChild(oScript);
}
child = child.nextSibling;
Show replies by date