Skip to main content

Bug Tracker

Side navigation

Ticket #4691: test-4691.html


File test-4691.html, 0.6 KB (added by dmethvin, October 19, 2009 01:15AM UTC)

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

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html><head>
<title>test</title>
<style type="text/css">

</style>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.js" type="text/javascript"></script>
<script type="text/javascript">

$(function() {

 var $inhid = $('<input />').attr('type','hidden');
 var $posx = $inhid.clone().attr('name','x').val('x');
 var $posy = $inhid.clone().attr('name','y').val('y');

 $("div").append($posx, $posy);
 alert($("div").html());


}); 
</script>
</head>
<body>

<div>
</div>

</body>
</html>

Download in other formats:

Original Format