Bug Tracker

Ticket #4691: test-4691.html

File test-4691.html, 597 bytes (added by dmethvin, 10 years ago)

Test case for #4691; breaks in IE8 when in IE7-compat mode

Line 
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2<html><head>
3<title>test</title>
4<style type="text/css">
5
6</style>
7<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.js" type="text/javascript"></script>
8<script type="text/javascript">
9
10$(function() {
11
12 var $inhid = $('<input />').attr('type','hidden');
13 var $posx = $inhid.clone().attr('name','x').val('x');
14 var $posy = $inhid.clone().attr('name','y').val('y');
15
16 $("div").append($posx, $posy);
17 alert($("div").html());
18
19
20}); 
21</script>
22</head>
23<body>
24
25<div>
26</div>
27
28</body>
29</html>