8000 Bug with base64 hack · Issue #14 · jotform/css.js · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Aug 6, 2021. It is now read-only.

Bug with base64 hack #14

Open
ts1690 opened this issue Apr 13, 2016 · 0 comments
Open

Bug with base64 hack #14

ts1690 opened this issue Apr 13, 2016 · 0 comments

Comments

@ts1690
Copy link
ts1690 commented Apr 13, 2016

Hi, tested 3 css parsing libraries before this one. Brilliant and thanks!

Found small bug regarding css parse removing a semicolon..

This css:
"background-image: url('data:image/jpeg;base64,/9j/4AAQSkZ.."

Becomes:
"background-image: url('data:image/jpegbase64,/9j/4AAQSkZ.."

The fix:

Line 181 was:

ret[ret.length - 1].value += line.trim();

Should be: (note line is trimmed already above)

ret[ret.length - 1].value += ';'+line;//.trim();

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant
0