[py-dev] py.xml.html
William McVey
wam at cisco.com
Thu Apr 14 23:42:07 MEST 2005
I've recently started using the py.xml.html package and ran across some
additional HTML elements that would be nice to see get added to the
defined __tagspec__ of the html class. Namely:
"colgroup,col,map,area,blockquote,dl,dt,dd"
"strong,script,style"
Also, it would be nice if there were a flag that could turn off the XML
short cut of <emptyelement />. In particular, when generating HTML for
older browsers, it is much better to generate elements using the syntax
of <emptyelement></emptyelement>. I've hacked this feature into
xmlobj/visit.py in a very non-elegant fashion (always favoring the
HTML-friendly approach, which works for me, but probably isn't
appropriate for all cases). Let me know if other people think this is a
good idea, and I can try to polish this up based off of an instantiation
flag or something.
-- William
More information about the py-dev
mailing list