Good day, I have stumbled upon a bug or some strange behaviour and I can't find the solution anywhere.
I use XSLT to display HTML from a XML document. Inside that stylehsheet, I use javascript/jQuery to add some contents. But apparently you can not append anything but texts to any container.
<script type="text/javascript">
<![CDATA[
$(function() {
$("div#topbanner" ).html('<img src="images/load-top.gif" class="load" />');
});
]]>
It's working perfectly under Firefox but with IE7, after the codes execution, only the unrendered HTML appears into my DIV. Like if the <>
got replaced by > <
respectively.
To make it work under IE7, I must take out the CDATA tag but doing so, Firefox do not render it.
Is there a way to make the information into the html method execute as html code?
Thank you in advance