Menu

#74 Invalid style declarations truncates the following declarations

0.9.25
open
nobody
None
1
2017-10-31
2017-01-27
Asiya
No

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;
;
}

Discussion

  • RBRi

    RBRi - 2017-02-23
    • Group: 0.9.22 --> 0.9.23
     
  • RBRi

    RBRi - 2017-06-01
    • Group: 0.9.23 --> 0.9.24
     
  • RBRi

    RBRi - 2017-10-31
    • Group: 0.9.24 --> 0.9.25
     

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.