Side navigation
Ticket #6004: test.html
File test.html, 0.7 KB (added by altman, February 01, 2010 09:26PM UTC)
Test HTML Showing Attribute Selector Bug
<!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" >
<head>
<title></title>
<script type='text/javascript' src='jquery-1.4.1.min.js'></script>
<script type='text/javascript'>
$(function() {
$('[value = ""]').css("background-color", "green");
$('[value = "a"]').css("background-color", "green");
});
</script>
</head>
<body>
Both textboxes should show up green
<br />
<input type="text" value="" />
<br />
<input type="text" value="a" />
</body>
</html>
Download in other formats:
Original Format
File test.html, 0.7 KB (added by altman, February 01, 2010 09:26PM UTC)
Test HTML Showing Attribute Selector Bug
<!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" >
<head>
<title></title>
<script type='text/javascript' src='jquery-1.4.1.min.js'></script>
<script type='text/javascript'>
$(function() {
$('[value = ""]').css("background-color", "green");
$('[value = "a"]').css("background-color", "green");
});
</script>
</head>
<body>
Both textboxes should show up green
<br />
<input type="text" value="" />
<br />
<input type="text" value="a" />
</body>
</html>