[jQuery] .html() make editplus and aptana down

[jQuery] .html() make editplus and aptana down


Hi, all
I used .html() to add "object" element to page, and I test it in
Editplus and aptana. However, it make editplus and aptana down.
html code (place a arbitrary swf in the same path width html):
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://
www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>gallery</title>
<script type="text/javascript" src="jquery-1.1.3.1.js"></script>
<script type="text/javascript">
$(document).ready(function(){
    $("div.allSmallImg").each(function(i){
        $(this).find("img:eq(0)").click(function(){
            var txt = '<object classid="clsid:D27CDB6E-
AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/
pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="400"
height="300" id="mvPlayer" name="mvPlayer"><param name="movie"
value="i.swf" /><param name="salign" value="lt" /><param
name="quality" value="high" /><param name="wmode" value="transparent" /