devtools/htmlparser.py
changeset 10006 8391bf718485
parent 8979 8f5416b1562a
child 10066 313ce53a7232
--- a/devtools/htmlparser.py	Fri May 02 17:41:11 2014 +0200
+++ b/devtools/htmlparser.py	Fri May 02 17:57:37 2014 +0200
@@ -176,23 +176,6 @@
         return super(XMLSyntaxValidator, self)._parse(data)
 
 
-class XMLDemotingValidator(XMLValidator):
-    """ 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, ...)
-    """
-    __metaclass__ = class_deprecated
-    __deprecation_warning__ = '[3.10] this is now handled in testlib.py'
-
-    def preprocess_data(self, data):
-        if data.startswith('<?xml'):
-            self.parser = etree.XMLParser()
-        else:
-            self.parser = etree.HTMLParser()
-        return data
-
-
 class HTMLValidator(Validator):
 
     def __init__(self):