Issue 825: Inline event handlers do not work in IE
http://code.google.com/p/google-caja/issues/detail?id=825

Comment #4 by naitiks:
This is one possible fix:

--- a/src/com/google/caja/plugin/html-emitter.js
+++ b/src/com/google/caja/plugin/html-emitter.js
@@ -75,6 +75,9 @@ HtmlEmitter.prototype = {
          top_.style.cssText = value;
        }
      }
+    else if (document.attachEvent && name.substr(0, 2) === 'on') {
+      top_.attachEvent(name, new Function(value));
+    }

(We have a few other patches so the line number may be out of whack.)



-- 
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to 
http://groups.google.com/group/google-caja-discuss
To unsubscribe, email [EMAIL PROTECTED]
-~----------~----~----~----~------~----~------~--~---

Reply via email to