author | Sylvain Thénault <sylvain.thenault@logilab.fr> |
Mon, 25 Jan 2010 21:16:42 +0100 | |
changeset 4346 | 02f12f39bae5 |
parent 4345 | 06a34ff6b49a |
child 4347 | af7b256bf2d5 |
--- a/devtools/testlib.py Mon Jan 25 19:48:19 2010 +0100 +++ b/devtools/testlib.py Mon Jan 25 21:16:42 2010 +0100 @@ -657,6 +657,9 @@ if validatorclass is None: return None validator = validatorclass() + if isinstance(validator, htmlparser.DTDValidator): + # XXX remove <canvas> used in progress widget, unknown in html dtd + output = re.sub('<canvas.*?></canvas>', '', output) return validator.parse_string(output.strip()) # deprecated ###############################################################