Bug Tracker

Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#10801 closed bug (invalid)

HTML-comments within script-Blocks executede with $.html fails in IE - Error 80020101

Reported by: iui4@… Owned by:
Priority: low Milestone: None
Component: ajax Version: 1.6.4
Keywords: Cc:
Blocked by: Blocking:

Description

Normal html-comments in a script-tag, which is executed with scriptEval fails with the JS-error 80020101.

Similar with the Ticket #9221

Change History (4)

comment:1 Changed 8 years ago by anonymous

For Example: ajax.html

<script type="text/javascript">
<!-- /*
alert('Show Alert');
*/-->
</script>

test.html

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
  <head>
    <title></title>
    <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.0/jquery.min.js"></script>      
  </head>
  <body>
  <div id="ajax">Loading AJAX</div>
  
  <script type="text/javascript">
    $.ajax({
      url: "ajax.html",
      success: function(html){
        $("#ajax").html(html);
      }
    });
  </script>
  
  </body>
</html>

comment:2 Changed 8 years ago by timmywil

Component: unfiledajax
Priority: undecidedlow
Resolution: invalid
Status: newclosed

comment:3 Changed 8 years ago by polzka90

i have a similar error but in all browsers and i dont have html-comments in any script

comment:4 in reply to:  3 Changed 8 years ago by anonymous

Replying to polzka90:

i have a similar error but in all browsers and i dont have html-comments in any script

What means similar?

Note: See TracTickets for help on using tickets.