Details
-
Bug
-
Status: Open
-
Critical
-
Resolution: Unresolved
-
1.7
-
None
-
None
-
Batik CSS 1.7
Description
In reportError, Batik CSS parser will try to find the next token.
But the logic was wrong and it will skip all text.
For example, if you have css like below
<style> ol, ul { margin:0; padding:0;} <!-- wrong not css but comment --> li spanwithextradot. { clear: both; line-height:0; width:0; height:0; margin:0; padding:0; } span.footnodeNumber { padding-right:1em; } </style>
It should find two valid css styles
<style> ol, ul { margin:0; padding:0;} span.footnodeNumber { padding-right:1em; } </style>
Because of the bug, it only find one valid css style, and dropped all others
<style> ol, ul { margin:0; padding:0;} </style>
Patch will be attached.