glow.dom.get(null).is("foo") returns true
Reported by Michael Stillwell | March 8th, 2010 @ 06:07 PM
The "is()" method, when called on an empty nodelist, returns true. This is somewhat unexpected. (If this is consistent with other glow return values, perhaps a note can be added to the "is" documentation.)
Comments and changes to this ticket
-
Michael Stillwell March 9th, 2010 @ 11:25 AM
glow.dom.get(null).hasClass("foo") does always return false, so I think one or the other should be changed for consistency.
-
Jake Archibald March 11th, 2010 @ 03:44 PM
- Tag changed from 1.7 to defect, dom
- State changed from new to accepted
Cheers for spotting this, definitely a bug.
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
A JavaScript Library