#124 Error with inline java script and < operator?

open
nobody
None
5
2011-10-12
2011-10-12
Arthur
No

Dear All,

Thanks for the very nice library.

Could someone perhaps comment on the following behavior when trying to read inline java:

XML file with inline java and Less than operator:
<a onclick="javascript:try{if(aa">&lt;0){}}
catch(ex){}returntrue;&gt;</a>

Becomes:
+ Element [a]
+ onclick: value=[javascript:try{if(aa]
1 attribute
+ Text: [<0){}} catch(ex){}returntrue;>]

XML file with inline java and Greater than operator:
<a onclick="javascript:try{if(aa">0){}}
catch(ex){}returntrue;&gt;</a>

Becomes:
+ Element [a]
+ onclick: value=[javascript:try{if(aa]
1 attribute
+ Text: [0){}} catch(ex){}returntrue;>]

XML file with inline java and Equal operator:
<a onclick="javascript:try{if(aa=0){}}
catch(ex){}returntrue;" />

Becomes:
+ Element [a]
+ onclick: value=[javascript:try{if(aa=0){}} catch(ex){} returntrue;]
1 attribute

I think only the last is correct?

Thanks in advance for your time,

Arthur

Discussion

  • I would like to work on this bug. Please assign this to me.