8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b84dd5 commit 39d65b5Copy full SHA for 39d65b5
html5lib/tests/test_sanitizer.py
@@ -82,7 +82,7 @@ def test_sanitizer():
82
continue
83
attribute_value = 'foo'
84
if attribute_name in sanitizer.HTMLSanitizer.attr_val_is_uri:
85
- attribute_value = 'http://sub.domain.tld/path/object.ext'
+ attribute_value = '%s://sub.domain.tld/path/object.ext' % sanitizer.HTMLSanitizer.allowed_protocols[0]
86
yield (runSanitizerTest, "test_should_allow_%s_attribute" % attribute_name,
87
"<p %s=\"%s\">foo <bad>bar</bad> baz</p>" % (attribute_name, attribute_value),
88
"<p %s='%s'>foo <bad>bar</bad> baz</p>" % (attribute_name, attribute_value),
0 commit comments