equal
deleted
inserted
replaced
228 """wraps HTML header's stream |
228 """wraps HTML header's stream |
229 |
229 |
230 Request objects use a HTMLHead instance to ease adding of |
230 Request objects use a HTMLHead instance to ease adding of |
231 javascripts and stylesheets |
231 javascripts and stylesheets |
232 """ |
232 """ |
233 js_unload_code = u'jQuery(window).unload(unloadPageData);' |
233 js_unload_code = u'''if (typeof(pageDataUnloaded) == 'undefined') { |
|
234 jQuery(window).unload(unloadPageData); |
|
235 pageDataUnloaded = true; |
|
236 }''' |
234 # Making <script> tag content work properly with all possible |
237 # Making <script> tag content work properly with all possible |
235 # content-types (xml/html) and all possible browsers is very |
238 # content-types (xml/html) and all possible browsers is very |
236 # tricky, see http://www.hixie.ch/advocacy/xhtml for an in-depth discussion |
239 # tricky, see http://www.hixie.ch/advocacy/xhtml for an in-depth discussion |
237 xhtml_safe_script_opening = u'<script type="text/javascript"><!--//--><![CDATA[//><!--\n' |
240 xhtml_safe_script_opening = u'<script type="text/javascript"><!--//--><![CDATA[//><!--\n' |
238 xhtml_safe_script_closing = u'\n//--><!]]></script>' |
241 xhtml_safe_script_closing = u'\n//--><!]]></script>' |