Skip to main content

Bug Tracker

Side navigation

Ticket #5264: jq_embed_breakage.html


File jq_embed_breakage.html, 0.8 KB (added by mikecapp, January 20, 2010 03:27PM UTC)

Minimal demo

<!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=UTF-8" />
		<script type="text/javascript" src="jquery-1.4.js"></script>
		<script type="text/javascript">
		//<![CDATA[
		$(function() {
			alert($("div").html());
			$("div").replaceWith("<div><embed which='after' /></div>");
			alert($("div").html()); // this line throws at line 3970 of jquery-1.4.js; the div element claims not to have an innerHTML property
		});
		//]]>
		</script>
		<title>BUG: embed breakage (jQuery 1.4, IE 7.0.5730.11, Win2003)</title>
	</head>
	<body>
		<div><embed which='before' /></div>
	</body>
</html>

Download in other formats:

Original Format