Bug Tracker

Modify

Ticket #10801 (closed bug: invalid)

Opened 19 months ago

Last modified 15 months ago

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:
Blocking: Blocked by:

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

comment:1 Changed 19 months 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 19 months ago by timmywil

  • Priority changed from undecided to low
  • Resolution set to invalid
  • Status changed from new to closed
  • Component changed from unfiled to ajax

comment:3 follow-up: ↓ 4 Changed 15 months 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 15 months 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?

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.