Bug Tracker

Ticket #4019: test-case-2.html

File test-case-2.html, 780 bytes (added by Maaack, 13 years ago)

Second test case with Jquery(html) results.

Line 
1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3<html xmlns="http://www.w3.org/1999/xhtml">
4<head>
5<title>Test-Case-1
6</title>
7<script src="js/jquery-1.3.1.min.js" type="text/javascript">
8</script>
9<script type="text/javascript">
10$(document).ready(function(){
11        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();
12        alert("Test 1 = "+html);
13        var html = $(html).html();
14        alert("Test 1 = "+html);
15        var html = $("html").html();
16        alert("Test 2 = "+html);
17        var html = $(html).html();
18        alert("Test 2 = "+html);
19});
20</script>
21</head>
22<body><div><div><div class="low"><p>Stuff</p></div></div></div>
23</body>
24</html>