Fixed parsing error for URL() base64 streams

This commit is contained in:
nathan 2017-07-01 22:01:03 +02:00
parent c3373dd0c5
commit e7e9cddda9

View File

@ -138,6 +138,14 @@ class CssParser {
if (separator < end) {
String key = nodeSection.substring(start, separator);
String value = nodeSection.substring(separator + 1, end);
if (value.contains("url(") || value.contains("url (")) {
// this is really a URL , so we have to goto to the closing ');'
end = nodeSection.indexOf(')', end);
end = nodeSection.indexOf(';', end);
value = nodeSection.substring(separator + 1, end);
}
attributes.add(new CssAttribute(key, value));
}
start = end + 1;