You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@shindig.apache.org by hs...@apache.org on 2012/03/08 02:25:07 UTC

svn commit: r1298249 - /shindig/trunk/features/src/main/javascript/features/opensocial-templates/compiler.js

Author: hsaputra
Date: Thu Mar  8 01:25:06 2012
New Revision: 1298249

URL: http://svn.apache.org/viewvc?rev=1298249&view=rev
Log:
SHINDIG-1706 | Internet Explorer does not render <script> tags inside templates (<Template>) | Patch from Richard Kettelerij. Thanks

Modified:
    shindig/trunk/features/src/main/javascript/features/opensocial-templates/compiler.js

Modified: shindig/trunk/features/src/main/javascript/features/opensocial-templates/compiler.js
URL: http://svn.apache.org/viewvc/shindig/trunk/features/src/main/javascript/features/opensocial-templates/compiler.js?rev=1298249&r1=1298248&r2=1298249&view=diff
==============================================================================
--- shindig/trunk/features/src/main/javascript/features/opensocial-templates/compiler.js (original)
+++ shindig/trunk/features/src/main/javascript/features/opensocial-templates/compiler.js Thu Mar  8 01:25:06 2012
@@ -582,7 +582,7 @@ os.processTextContent_ = function(fromNo
     var substitution = os.parseAttribute_(fromNode.firstChild.data);
     if (toNode.nodeName == 'SCRIPT') {
       toNode.text = os.trimWhitespaceForIE_(fromNode.firstChild.data, true, true);
-    } if (substitution) {
+    } else if (substitution) {
       toNode.setAttribute(ATT_content, substitution);
     } else {
       toNode.appendChild(document.createTextNode(