Skip to content

Commit 19fa57a

Browse files
committed
remove the wrong limit check, correct double next. Fix for w3c#350
1 parent 057de2c commit 19fa57a

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

org/w3c/css/properties/css3/fontface/CssUnicodeRange.java

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,16 +36,12 @@ public CssUnicodeRange() {
3636
*/
3737
public CssUnicodeRange(ApplContext ac, CssExpression expression, boolean check)
3838
throws InvalidParamException {
39-
if (check && expression.getCount() > 2) {
40-
throw new InvalidParamException("unrecognize", ac);
41-
}
42-
43-
setByUser();
44-
4539
char op;
4640
CssValue val;
4741
ArrayList<CssValue> values = new ArrayList<>();
4842

43+
setByUser();
44+
4945
while (!expression.end()) {
5046
val = expression.getValue();
5147
op = expression.getOperator();
@@ -65,7 +61,6 @@ public CssUnicodeRange(ApplContext ac, CssExpression expression, boolean check)
6561
throw new InvalidParamException("operator",
6662
Character.toString(op), ac);
6763
}
68-
expression.next();
6964
}
7065
if (values.isEmpty()) {
7166
throw new InvalidParamException("few-value", getPropertyName(), ac);

0 commit comments

Comments
 (0)