Bug Tracker

Ticket #6004: test.html

File test.html, 703 bytes (added by altman, 10 years ago)

Test HTML Showing Attribute Selector Bug

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></title> 
5     <script type='text/javascript' src='jquery-1.4.1.min.js'></script> 
6     <script type='text/javascript'> 
7         $(function() { 
8             $('[value = ""]').css("background-color", "green"); 
9                         $('[value = "a"]').css("background-color", "green"); 
10                         
11         }); 
12     </script> 
13 </head> 
14 <body> 
15        Both textboxes should show up green
16        <br />
17 
18     <input type="text" value="" /> 
19         <br />
20         <input type="text" value="a" /> 
21 </body> 
22 </html>