Skip to content

0.2.1+ no longer supports stylesheets in data URIs #15

Description

@dato

It is possible to embed CSS inside the <style> element using the data: URI scheme. Like this:

<link rel="stylesheet" href="data:text/css,EMBEDDED_CSS_GOES_HERE">

This worked in 0.2.0, but doesn’t work in 0.2.1 with the move from urllib.urlopen() to python-requests.

It’d be nice to get this working again, though it’s arguably a requests issue.


I took a quick at requests, but I couldn’t determine if they have support for RFC 2397 (which defines the data: scheme).

I suggest leaving this bug open until either of us the time to investigate RFC2397 support in python-requests.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions