Bug Tracker

Ticket #5728: index.html

File index.html, 825 bytes (added by mazniak, 10 years ago)

A test case for reproducing the bug.

Line 
1<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
2   "http://www.w3.org/TR/html4/strict.dtd">
3
4<html lang="en">
5<head>
6        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
7        <title>index</title>
8        <meta name="generator" content="TextMate http://macromates.com/">
9        <meta name="author" content="Matthew Wozniak">
10        <!-- Date: 2009-12-29 -->
11        <script src="http://code.jquery.com/jquery-latest.pack.js" type="text/javascript" charset="utf-8"></script>
12        <script type="text/javascript" charset="utf-8">
13                var foo;
14                $(function(){
15                        foo = $("<img id='foo' src='http://www.google.com/images/srpr/logo1w.png'>");
16                        foo.attr("height", 111);
17                        console.log(foo.attr("height")); // does *not* work in IE8
18                        console.log(foo.get(0).getAttribute("height")); //does return 111
19                });
20        </script>
21</head>
22<body>
23</body>
24</html>