Provide a graceful failover for [name=foo] queries that are looking for non-input/iframe/form elements. Fixes jQuery bug #4081.

This commit is contained in:
John Resig 2009-02-14 22:24:55 +00:00
parent 782b4af76e
commit 21dde30348
3 changed files with 8 additions and 5 deletions

View file

@ -121,8 +121,8 @@
<input name="types[]" id="types_movie" type="checkbox" value="movie" />
</form>
<div id="fx-queue">
<div id="fadein" class='chain test'>fadeIn<div>fadeIn</div></div>
<div id="fx-queue" name="test">
<div id="fadein" class='chain test' name='div'>fadeIn<div>fadeIn</div></div>
<div id="fadeout" class='chain test out'>fadeOut<div>fadeOut</div></div>
<div id="show" class='chain test'>show<div>show</div></div>