Skip to content

Conversation

blag
Copy link

@blag blag commented Apr 28, 2014

Allow the 'data' pseudo-protocol as established with https://en.wikipedia.org/wiki/Data_URI_scheme#Format. There is a current PR for html5lib to add 'data' to acceptable_protocols (PR #148), but this prevents Bleach from incorrectly deleting URI attributes with the 'data' protocol until html5lib is fixed.

Allow the 'data' pseudo-protocol as established with https://en.wikipedia.org/wiki/Data_URI_scheme#Format.
@mdxs
Copy link
Contributor

mdxs commented Jul 1, 2014

I assume this PR wouldn't be needed if #122 is accepted.

@blag
Copy link
Author

blag commented Jul 1, 2014

That's true. However, there might be an issue regarding unsafe content types:

html5lib/html5lib-python#148

A combination of

html5lib/html5lib-python#110
html5lib/html5lib-python#156

would handle data URL schemes and SVG attributes in HTML5Lib.

@willkg
Copy link
Member

willkg commented Dec 2, 2015

#122 and #149 both cover changing allowed protocols. We should continue this conversation in one of those two places depending.

@willkg willkg closed this Dec 2, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants