diff markup/output.py @ 178:ba7556e3a835 trunk

Fix bug in XHTML serialization: all elements were allowed to be written out as empty if the namespace was set.
author cmlenz
date Mon, 21 Aug 2006 15:36:29 +0000
parents 553866249cb0
children 5861f4446c26
line wrap: on
line diff
--- a/markup/output.py
+++ b/markup/output.py
@@ -231,7 +231,7 @@
                         buf += [' ', attrname, '="', escape(value), '"']
                 ns_attrib = []
 
-                if (tagns and tagns != namespace) or tagname in empty_elems:
+                if (tagns and tagns != namespace.uri) or tagname in empty_elems:
                     kind, data, pos = stream.next()
                     if kind is END:
                         buf += [' />']
Copyright (C) 2012-2017 Edgewall Software