Mercurial > genshi > genshi-test
diff markup/output.py @ 158:8e81177059f3
* Add test case for SVG content embedded in an HTML document.
* The XHTML serializer now assumes that elements in a foreign namespace (such as SVG or MathML) can be serialized as empty tags (`<foo />`).
author | cmlenz |
---|---|
date | Wed, 16 Aug 2006 21:29:48 +0000 |
parents | 56d534eb53f9 |
children | dbae9efe5704 |
line wrap: on
line diff
--- a/markup/output.py +++ b/markup/output.py @@ -231,7 +231,7 @@ buf += [' ', attrname, '="', escape(value), '"'] ns_attrib = [] - if (not tag.namespace or tag in namespace) and \ + if (tag.namespace and tag not in namespace) or \ tagname in empty_elems: kind, data, pos = stream.next() if kind is END: