Skip to content

Commit

Permalink
Fix CSS declaration skip after extra semicolon
Browse files Browse the repository at this point in the history
  • Loading branch information
Slayer95 committed Aug 2, 2017
1 parent 71697dd commit 62a8055
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/com/google/caja/plugin/cssparser.js
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,7 @@ var parseCssDeclarations;
function declaration(toks, i, n, handler) {
var property = toks[i++];
if (!ident.test(property)) {
if (property === ';') return i;
return skipDeclaration(toks, i, n);
}
var tok;
Expand Down

0 comments on commit 62a8055

Please sign in to comment.