Please explain the reason why on the page when clicking on the .content block in the latest version of Opera, JavaScript does not work, and in the latest version of FF it works.

<?xml version="1.0" encoding="utf-8" ?> <?xml-stylesheet type="text/xsl" href="xsl/rules2.xsl" ?> <authors> <title_head>мы поэты</title_head> <author id="1"> <fio> <f>Пушкин</f> <i>Александр</i> <o>Сергеевич</o> </fio> <born>1799</born> </author> <author id="2"> <fio> <f>Лермонтов</f> <i>Михаил</i> <o>Юрьевич</o> </fio> <born>1814</born> </author> </authors> 
  • script is alert(666) ? although there are no more scripts, but still, in the latest version of the opera, i.e. 12, everything works. I would be more worried about the vigorous combination of colors - Specter
  • version 12.01. does not work ... but thanks anyway - cyklop77
  • Opera 9.63 works, ie 8 works - darell

1 answer 1

Wrap the contents of the script in CDATA.

 <script type="text/javascript"> // <![CDATA[ $(document).ready(function(){ $(".content").click(function(){ alert(666); }); }); // ]]> </script>