Skip to main content

Bug Tracker

Side navigation

Ticket #5483: test-5483.html


File test-5483.html, 0.4 KB (added by dmethvin, November 11, 2009 01:05PM UTC)

Updated test case showing problem with leading spaces

<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="http://code.jquery.com/jquery-nightly.min.js"></script>
<script type="text/javascript">
$(function(){
  jQuery('<div>').html('&lt;div&gt;hello1&lt;/div&gt;').appendTo("body");
  jQuery('<div>').html('x&lt;div&gt;hello2&lt;/div&gt;').appendTo("body");
  jQuery('<div>').html(' &lt;div&gt;hello2&lt;/div&gt;').appendTo("body");
});
</script>
</head>
<body>
</body>
</html>

Download in other formats:

Original Format