Skip to main content

Bug Tracker

Side navigation

Ticket #4533: bug.jQuery.text.html
File bug.jQuery.text.html, 0.4 KB (added by kspeakman, April 13, 2009 11:29PM UTC)

Demo page for the text(val) and Javascript String object bug.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
	<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" type="text/javascript"></script>
</head>
<body>
	<input type="button" value="Crash!" onclick="$('#test').text(new String('Test2'));" />
	<span id="test">Test</span>
</body>
</html>

Download in other formats:

Original Format