SHARE
TWEET

jQuery IE bug

a guest Nov 3rd, 2010 224 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
  3. <head>
  4.         <title>jQuery IE bug</title>
  5.  
  6. <!--
  7.         <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.3/jquery.min.js"></script>
  8. -->
  9.         <script type="text/javascript" src="http://code.jquery.com/jquery-git.js"></script>
  10.  
  11.         <script type="text/javascript">
  12.         /* <![CDATA[ */
  13.                 $(function() {
  14.                         alert('Hey! Look! Double alert!');
  15.                         //for(var i=0; i<30000000; i++) {}
  16.                         document.body.appendChild(document.createElement("p"));
  17.                 });
  18.         /* ]]> */
  19.         </script>
  20.        
  21.         <style type="text/css">
  22.                 p {
  23.                         width: 100px;
  24.                         height: 100px;
  25.                         margin-bottom: 30px;
  26.                         background-color: red;
  27.                 }
  28.         </style>
  29. </head>
  30.  
  31. <body>
  32.         <div>
  33.                 <img src="http://www.google.com" alt="" />
  34.         </div>
  35. </body>
  36. </html>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top