Side navigation
Ticket #3178: test.html
File test.html, 0.6 KB (added by Joachim, July 23, 2008 04:37PM UTC)
Here is a sample test file to reproduce the behaviour
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<script type="text/javascript" src="js/jq/jquery.js"></script>
</head>
<body>
<script type="text/javascript">
var data2 = '';
var nb = 49934;
for (cpt =0;cpt <nb;++cpt) {
data2 += 'a';
}
data2 = '<div><div id="website-background">taste</div><div>' + data2 + '</div></div>';
var currentSection = $('#website-background', data2).html();
alert('Trace : ' + currentSection);
</script>
</body></html>
Download in other formats:
Original Format
File test.html, 0.6 KB (added by Joachim, July 23, 2008 04:37PM UTC)
Here is a sample test file to reproduce the behaviour
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<script type="text/javascript" src="js/jq/jquery.js"></script>
</head>
<body>
<script type="text/javascript">
var data2 = '';
var nb = 49934;
for (cpt =0;cpt <nb;++cpt) {
data2 += 'a';
}
data2 = '<div><div id="website-background">taste</div><div>' + data2 + '</div></div>';
var currentSection = $('#website-background', data2).html();
alert('Trace : ' + currentSection);
</script>
</body></html>