Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

data: URLs are being rewritten to relative URLs in <style> #66

Closed
ebidel opened this issue Feb 9, 2013 · 2 comments
Closed

data: URLs are being rewritten to relative URLs in <style> #66

ebidel opened this issue Feb 9, 2013 · 2 comments
Assignees
Labels

Comments

@ebidel
Copy link
Contributor

ebidel commented Feb 9, 2013

Originally from: https://github.com/toolkitchen/polyfills/issues/85


For example:

<style>
div {
background: url('data:...');
}
</style>

The cssText is being rewritten to url('http://localhost:8000/data:...');

Culprit is makeCssUrlsRelative():
https://github.com/toolkitchen/polyfills/blob/master/Components/CustomDOMElement/HTMLElementElement.js#L184

@ghost ghost assigned sorvell Feb 9, 2013
@ebidel
Copy link
Contributor Author

ebidel commented Feb 9, 2013

@sorvell
Copy link
Contributor

sorvell commented Apr 18, 2013

Fixed and added test.

@sorvell sorvell closed this as completed Apr 18, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants