diff genshi/output.py @ 280:e68705cb462e

The content of `<script>` and `<style>` elements is no longer escaped when serializing to HTML but declaring the XHTML namespace in the template.
author cmlenz
date Sat, 07 Oct 2006 19:18:05 +0000
parents 24757b771651
children 6e6950ac0e56 edfbb49d0e4c
line wrap: on
line diff
--- a/genshi/output.py
+++ b/genshi/output.py
@@ -298,7 +298,10 @@
     <div><a href="foo"></a><br><hr noshade></div>
     """
 
-    _NOESCAPE_ELEMS = frozenset([QName('script'), QName('style')])
+    _NOESCAPE_ELEMS = frozenset([QName('script'),
+                                 QName('http://www.w3.org/1999/xhtml}script'),
+                                 QName('style'),
+                                 QName('http://www.w3.org/1999/xhtml}style')])
 
     def __init__(self, doctype=None, strip_whitespace=True):
         """Initialize the HTML serializer.
Copyright (C) 2012-2017 Edgewall Software