Skip to main content

Bug Tracker

Side navigation

Ticket #4019: test-case-2.html
File test-case-2.html, 0.8 KB (added by Maaack, January 30, 2009 05:33AM UTC)

Second test case with Jquery(html) results.

<!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>
<title>Test-Case-1
</title>
<script src="js/jquery-1.3.1.min.js" type="text/javascript">
</script>
<script type="text/javascript">
$(document).ready(function(){
	var html = $("<html xmlns=\"http://www.w3.org/1999/xhtml\"><body><div><div><div class=\"low\"><p>Stuff</p></div></div></div></body></html>").html();
	alert("Test 1 = "+html);
	var html = $(html).html();
	alert("Test 1 = "+html);
	var html = $("html").html();
	alert("Test 2 = "+html);
	var html = $(html).html();
	alert("Test 2 = "+html);
});
</script>
</head>
<body><div><div><div class="low"><p>Stuff</p></div></div></div>
</body>
</html>

Download in other formats:

Original Format