[jQuery] Bug in selector syntax (recursive?)
Hi,
I happened to hit the wrong key and made Safari nuts. I've pasted the code below. Notice the: "#buttons[button" part. If I replace the "[" with a "/" or a ">", all is fine. But the "[" really causes some problems. I realize that it's not the correct character, but it'd be nice to have it not freeze up.
Just found JQuery today. Really nice work. There were things about Prototype that really bothered me while really loving it's ease of use. Go JQuery!!!!
Matt
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML
1.0 Transitional//EN" "<a href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd</a>">
<html xmlns="<a href="http://www.w3.org/1999/xhtml">
http://www.w3.org/1999/xhtml</a>">
<head>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$('#buttons[button').click(function(){
$("p").load("server.php");
});
});
</script>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>JQuery Test</title>
</head>
<body>
waiting for a click...
<div id="buttons">
<button>Load It</button><br />
<button>Or... Load It</button>
</div>
Me too...
</body>
</html>
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/