Modify ↓
Ticket #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: | ||
| 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: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
HTML comments in a script tag are invalid. http://dev.w3.org/html5/spec/scripting-1.html#restrictions-for-contents-of-script-elements
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

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>