When parsing an rgb value in a function the result gets defect. The commas will be treated as parameters:
Input: -webkit(rgb(18,52,86))
Output: -webkit(rgb(18,,,52,,,86))
Reparsing the output leads to a NullPointerExeption after the first comma.
In LexicalUnitImpl the function appendParams should be changed to take the comma-parameter in consideration:
private void appendParams(final StringBuilder sb, final LexicalUnit first) {
LexicalUnit l = first;
boolean comma = false;
while (l != null) {
+ if (l.getLexicalUnitType()!=SAC_OPERATOR_COMMA) {
if (comma) {
sb.append(",");
}
comma = true;
sb.append(l.toString());
+ }
l = l.getNextLexicalUnit();
}
}
Anonymous
Diff:
Diff:
Fixed in SVN