Skip to main content

Bug Tracker

Side navigation

Ticket #3167: bug.html


File bug.html, 0.5 KB (added by hkirsman, July 17, 2008 12:59PM UTC)

bug with selection of 'input type=text name=name '

<!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>BUG</title>

<script type="text/javascript" src="http://code.jquery.com/jquery-1.2.6.min.js"></script>


</head>
<body>

<form>
<input type="text" name="name" />
</form>

<script type="text/javascript">
t = $("[name^=blah][type!=submit]");
// solution
// t = $("form [name^=blah][type!=submit]");
</script>

</div>


</body>
</html>

Download in other formats:

Original Format