diff -r 2e5bc78d05f3 -r 5037d891e207 devtools/htmlparser.py --- a/devtools/htmlparser.py Thu Apr 15 12:04:48 2010 +0200 +++ b/devtools/htmlparser.py Thu Apr 15 14:06:33 2010 +0200 @@ -74,6 +74,21 @@ Validator.__init__(self) self.parser = etree.XMLParser() +class XMLDemotingValidator(SaxOnlyValidator): + """ some views produce html instead of xhtml, using demote_to_html + + this is typically related to the use of external dependencies + which do not produce valid xhtml (google maps, ...) + """ + + def preprocess_data(self, data): + if data.startswith('