Side navigation
#10801 closed bug (invalid)
Opened November 16, 2011 10:48AM UTC
Closed November 16, 2011 02:41PM UTC
Last modified March 01, 2012 03:58AM UTC
HTML-comments within script-Blocks executede with $.html fails in IE - Error 80020101
| Reported by: | iui4@gmx.de | 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
Attachments (0)
Change History (4)
Changed November 16, 2011 10:53AM UTC by comment:1
Changed November 16, 2011 02:41PM UTC by comment:2
| component: | unfiled → ajax |
|---|---|
| priority: | undecided → low |
| resolution: | → invalid |
| status: | new → closed |
HTML comments in a script tag are invalid. http://dev.w3.org/html5/spec/scripting-1.html#restrictions-for-contents-of-script-elements
Changed February 29, 2012 07:48PM UTC by comment:3
i have a similar error but in all browsers and i dont have html-comments in any script
Changed March 01, 2012 03:58AM UTC by comment:4
Replying to [comment:3 polzka90]:
i have a similar error but in all browsers and i dont have html-comments in any script
What means similar?
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>