Side navigation
Ticket #2445: jquery-map-test.html
File jquery-map-test.html, 0.6 KB (added by ratbeard, March 03, 2008 03:35AM UTC)
A test page that shows the problem
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<script src = "http://code.jquery.com/jquery-latest.js"></script>
<!--
<script src="jquery-1.2.3-fix.js"></script>
-->
<script>
$(document).ready(function(){
$.map(["hey"], function(el) {
return $('<div>').text(el + ' yo');
})[0].appendTo('body');
$.map(["hey"], function(el) {
return $('<div>').text(this + ' yo');
})[0].appendTo('body');
});
</script>
</head>
<body>
</body>
</html>
Download in other formats:
Original Format
File jquery-map-test.html, 0.6 KB (added by ratbeard, March 03, 2008 03:35AM UTC)
A test page that shows the problem
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<script src = "http://code.jquery.com/jquery-latest.js"></script>
<!--
<script src="jquery-1.2.3-fix.js"></script>
-->
<script>
$(document).ready(function(){
$.map(["hey"], function(el) {
return $('<div>').text(el + ' yo');
})[0].appendTo('body');
$.map(["hey"], function(el) {
return $('<div>').text(this + ' yo');
})[0].appendTo('body');
});
</script>
</head>
<body>
</body>
</html>