Skip to main content

Bug Tracker

Side navigation

Ticket #3680: test-3680.html


File test-3680.html, 0.6 KB (added by dmethvin, May 06, 2009 03:35AM UTC)

Works for FF and IE8.

<!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">
$(document).ready(function() {
  alert('"'+document.getElementById("div1").className+'"');
  $('<div id="div2" class="test\r\n\t\t\t\t">another test</div>').appendTo("body");
  alert('"'+document.getElementById("div2").className+'"');
  alert($(".test").length);
});
</script>
</head>
<body>

<div id="div1" class="test
					"></div>

</body>
</html>

Download in other formats:

Original Format