Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 1714 by [email protected]: Cannot cajole document.ready
http://code.google.com/p/google-caja/issues/detail?id=1714

What revision of the cajoler exhibits the problem?  On what browser and OS?

* Updated to head revision on trunk SVN around Sat, 20 Apr 2013 19:00 -0700 (PDT)
* Tested on Chrome 26 and Firefox 20
* Mac OSX

What steps will reproduce the problem?
1. Create a war file by the procedure here: http://stackoverflow.com/questions/16068317/set-up-a-production-ready-caja-server
2. Deploy the war file on Tomcat 7.0.8
3. Place the attached 3 files in the Root context (webapps/ROOT) and start server on port 8080
4. Open Either of the above browsers.
5. Using firebug, or developer tools console as appropriate, browse to localhost:8080/cajatest.html


What is the expected output? What do you see instead?

The javascript in the embeded page should raise an alert with the text 'foo'

No alert is raised and a javascript error is shown in the console "Uncaught ReferenceError: "alert" is not defined in this scope."

Please provide any additional information below.

I also get many console logged warnings relating to the cajoling of jquery, but given the prevelance of jquery, and the importance of minification in the industry I am assuming that these things are meant to be supported. (Otherwise this project will always have a very limited audience).

Attachments:
        jquery-1.8.3.min.js  91.4 KB
        cajatest.html  635 bytes
        jqbug.html  276 bytes

--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--

--- You received this message because you are subscribed to the Google Groups "Google Caja Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to