Closed marekhudyma closed 4 years ago
This is a bug with Jodd's IE conditional comments support:
<html><head>
<!--[if lte IE 9]><meta http-equiv="refresh" content="1;url=/2.218.0/static/unsupp.html" /><![endif]-->
<!--[if gt IE 9><!--><script>alert("Hello!");</script><!--<![endif]-->
</head>
</html>
The first line works fine, the second one crashes with IOOBE. A possible workaround is to disable IE conditional comments support in Lagarto config.
Thanx @slandelle for fast detection! It seems that the second line has the syntax error for Conditional Comments, i.e. its missing the ]
. I guess that in this case this is not a conditional comment, but regular one. Jodd should 'roll back' the conditional condition parsing and go with comment (just need to verify what happens in browser... internet explorer, anyone?:))).
Let me check if I didn’t introduce a typo when simplifying cnn.com HTML content.
I checked the code, you didnt make mistake @slandelle
if I assume that [if gt IE 9>
is a regular comment, should Jodd emit conditional comment on endif
or regular comment (as the starting conditional comment does not exist)?
Regular comment IMHO
Thanks mate!
Releasing new version @slandelle atm :)
Current behavior
I got java.lang.IndexOutOfBoundsException while parsing http://cnn.com page:
I use:
I use Java 11.
Exception that I have:
Expected behavior
No exception.
Steps to Reproduce the Problem
My code:
Here I uploaded file which causes error, so it would be easy to reproduce: