Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #9466: index.html

File index.html, 0.6 kB (added by na43251, 10 months ago)

Leak example

Line 
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2 <html xmlns="http://www.w3.org/1999/xhtml">
3 <head>
4 <title>Test</title>
5 <script type="text/javascript" src="prototype.js"></script>
6 <script type="text/javascript">
7 Event.observe(window, 'load', function() {
8     $$('p').each(function(e){
9         Event.observe(e, 'click', function() {
10             var a = '123456';
11             for(var i = 0; i < 8; ++i)
12                 a += a;
13         });
14     });
15     location.reload();
16 });
17 </script>
18 </head>
19 <body>
20 <p></p><p></p><p></p><p></p><p></p><p></p><p></p><p></p>
21 </body>
22 </html>