Bug Tracker

Ticket #2445: jquery-map-test.html

File jquery-map-test.html, 580 bytes (added by ratbeard, 14 years ago)

A test page that shows the problem

Line 
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
2                    "http://www.w3.org/TR/html4/loose.dtd">
3<html>
4<head>
5  <script src = "http://code.jquery.com/jquery-latest.js"></script>
6  <!--
7  <script src="jquery-1.2.3-fix.js"></script>
8  -->
9  <script>
10  $(document).ready(function(){
11    $.map(["hey"], function(el) { 
12      return $('<div>').text(el + ' yo'); 
13    })[0].appendTo('body');
14   
15    $.map(["hey"], function(el) { 
16      return $('<div>').text(this + ' yo'); 
17    })[0].appendTo('body');
18  }); 
19  </script>
20</head>
21<body> 
22</body>
23</html>