Bug Tracker

Ticket #3178: 3178.html

File 3178.html, 742 bytes (added by nathanhammond, 12 years ago)

Updates test case that would have previously failed in Safari.

Line 
1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
3<head>
4<title>3178 Test Case</title>
5<script type="text/javascript" src="jquery.js"></script>
6<script type="text/javascript">
7$(document).ready(function() {
8        var numchars = 800000;
9        var teststring = '';
10
11        for (var i = 0; i < numchars; i++) {
12                teststring += '2';
13        }
14
15        var htmlcode = '<div><div id="one">1</div><div id="two">' + teststring + '</div></div>';
16        var currentsection = $('#one', htmlcode).html();
17        alert('#one contents: ' + currentsection); // Expected "#one contents: 1"
18});
19</script>
20</head>
21
22<body>
23</body>
24
25</html>