Closed
Description
While trying to sanitize u'<html><body><audio controls="" src="data:foobar"></audio></body></html>'
I get an AttributeError exception In HTMLSanitizerMixin line 218
215: m = content_type_rgx.match(uri.path)
216: if not m:
217: del attrs[attr]
218: if m.group('content_type') not in self.allowed_content_types:
del attrs[attr]
Line 215 returns None , but in line 218 m is assumed to be None
Carlos