Bug Tracker

Ticket #3397: redux_and_patch.html

File redux_and_patch.html, 978 bytes (added by mintywalker, 12 years ago)

Example / test case / redux & patch

Line 
1<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2<html lang="en">
3  <head>
4    <title>jquery crashing safari 2.0.4</title>
5    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js"></script>
6  </head>
7  <body>
8    <div id=fail>
9      <a href="http://www.apple.com/">iphone</a>
10    </div>
11    <script type="text/javascript">
12      $(function() {
13        $('#fail').find('a').html('FAIL!');
14      });
15    </script>
16  </body>
17</html>
18<!--
19--- jquery.js.orig      2008-09-23 12:49:15.000000000 +0100
20+++ jquery.js   2008-09-23 12:50:48.000000000 +0100
21@@ -1132,7 +1132,7 @@
22                if( array != null ){
23                        var i = array.length;
24                        //the window, strings and functions also have 'length'
25-                       if( i == null || array.split || array.setInterval || array.call )
26+                       if( i == null || "split" in array || "setInterval" in array || "call" in array )
27                                ret[0] = array;
28                        else
29                                while( i )
30-->