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

Fails to parse datauris properly #907

Closed
manast opened this issue Aug 15, 2016 · 1 comment · Fixed by #985
Closed

Fails to parse datauris properly #907

manast opened this issue Aug 15, 2016 · 1 comment · Fixed by #985

Comments

@manast
Copy link

manast commented Aug 15, 2016

If you have an element like this:

<div style='font-family:"butcherman-caps"; src:url(data:font/opentype;base64,AAEA...);'></div>

Parsing this element with cheerio will not return a correct value for the css property src:

$('div').css('src') -> url(data:font/opentype

I assume the css parser believes that the ; after opentype signals the end of the style property. The parser will need a special parser for handling datauris.

@fb55
Copy link
Member

fb55 commented Feb 20, 2018

Closing in favour of #1134

@fb55 fb55 closed this as completed Feb 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

2 participants