]> granicus.if.org Git - python/commitdiff
bug [ 1108948 ] Cookie.py produces invalid code
authorGeorg Brandl <georg@python.org>
Sun, 26 Jun 2005 21:02:49 +0000 (21:02 +0000)
committerGeorg Brandl <georg@python.org>
Sun, 26 Jun 2005 21:02:49 +0000 (21:02 +0000)
Lib/Cookie.py

index a6ca6545b7da5811e8eaebb4867fb9aaa1161469..4661d7c3ffabf81acc342a8a690319a0597793c9 100644 (file)
@@ -470,9 +470,9 @@ class Morsel(dict):
     def js_output(self, attrs=None):
         # Print javascript
         return """
-        <SCRIPT LANGUAGE="JavaScript">
+        <script type="text/javascript">
         <!-- begin hiding
-        document.cookie = \"%s\"
+        document.cookie = \"%s\";
         // end hiding -->
         </script>
         """ % ( self.OutputString(attrs), )