- Group: 0.9.22 --> 0.9.23
Input 1:
<style>
h1{
-moz-transform:scale(x)
-moz-transform:scale(x);
color:red;
height:10px;
visibility: visible;}
</style>
output 1:
<style>
h1{
color:red;
height:10px;
visibility: visible;}
</style>
Valid behavior
Input 2 :
<style>
h1{
-moz-transform:scale(x)
-webkit-transform :scale(x);
color:red;
height:10px;
visibility: visible;}
</style>
output 2 :
<style> h1{ } </style>INVALID behavior in CSSParser - due to space after the 2nd property -webkit-transform
Input 3:
<style> h1{ background-image: radial-gradient (center, ellipse closest-corner , #d59815 0%, #990000 100% ); color:red; } </style>output 3:
<style> h1{ } </style>INVALID behavior in CSSParser due to space after the function name radial-gradient
FIX
SACParserCSS3.java - Line no 2210
switch ((jj_ntk==-1)?jj_ntk_f():jj_ntk) {
case LROUND:
case COLON:
case UNKNOWN:{
t = jj_consume_token(jj_ntk);
locator = createLocator(token);
CSSParseException cpe = toCSSParseException("invalidDeclarationInvalidChar", new String[] {t.image}, locator);
getErrorHandler().error(cpe);
error_skipdecl();
break;
}
default:
jj_la1[96] = jj_gen;
;
}
Anonymous