Bug 1478184 - fix handling of html comments in parseDeclarations; r=gl
parseDeclarations was ignoring html comment tokens, but in fact they should not be treated any differently from other CSS tokens. MozReview-Commit-ID: 27Mxt5zbSSJ
This commit is contained in:
@@ -318,12 +318,6 @@ function parseDeclarationsInternal(isCssPropertyKnown, inputString,
|
||||
break;
|
||||
}
|
||||
|
||||
// Ignore HTML comment tokens (but parse anything they might
|
||||
// happen to surround).
|
||||
if (token.tokenType === "htmlcomment") {
|
||||
continue;
|
||||
}
|
||||
|
||||
// Update the start and end offsets of the declaration, but only
|
||||
// when we see a significant token.
|
||||
if (token.tokenType !== "whitespace" && token.tokenType !== "comment") {
|
||||
|
||||
Reference in New Issue
Block a user