Skip to content

Commit 3572a2d

Browse files
authored
Merge pull request #374 from Handig-Eekhoorn/PR-ignore_null-byte_for_nth-child_selectors
BUGFIX for null-byte at nth-child selectors
2 parents ace5b9f + dc5aca8 commit 3572a2d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

org/w3c/css/values/CssANPlusB.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,9 @@ public String toString() {
206206
sb.append('n');
207207
}
208208
if (b != null) {
209-
sb.append(operator);
209+
if(operator != '\0') {
210+
sb.append(operator);
211+
}
210212
sb.append(b.toPlainString());
211213
}
212214
representation = sb.toString();

0 commit comments

Comments
 (0)