Bug Tracker

Ticket #6125: test.html

File test.html, 730 bytes (added by willmorgan, 13 years ago)

Test case document

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">
3<head>
4<title>Untitled Document</title>
5<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6<script type="text/javascript" src="http://code.jquery.com/jquery-1.4.1.js"></script>
7<script type="text/ecmascript">
8Object.prototype.size = function () {
9        var len = 0;
10        for (var k in this) {
11                if (this.hasOwnProperty && this.hasOwnProperty(k)) {
12                        len++;
13                }
14        };
15        return len;
16};
17
18function fail() {
19        $('p').fadeOut();
20};
21
22$(function() {
23        fail();
24});
25
26</script>
27</head>
28
29<body>
30<p>Hi, I'm an element!</p>
31</body>
32</html>