Skip to content
This repository was archived by the owner on Jun 10, 2026. It is now read-only.

Allow Data URI Schemes#123

Closed
blag wants to merge 1 commit into
mozilla:masterfrom
blag:master
Closed

Allow Data URI Schemes#123
blag wants to merge 1 commit into
mozilla:masterfrom
blag:master

Conversation

@blag

@blag blag commented Apr 28, 2014

Copy link
Copy Markdown

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

mdxs commented Jul 1, 2014

Copy link
Copy Markdown
Contributor

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

@blag

blag commented Jul 1, 2014

Copy link
Copy Markdown
Author

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

willkg commented Dec 2, 2015

Copy link
Copy Markdown
Member

#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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants