-
Notifications
You must be signed in to change notification settings - Fork 308
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use .is('tr') instead of .attr('tagName') == 'TR' to determine table rows correctly. #40
Comments
From stan.madueke on November 15, 2011 22:39:57 Status: Accepted |
From systempa...@gmail.com on December 22, 2011 03:58:51 I'm using Firefox and I still cannot get this condition to pickup correctly. The documentation for jQuery states that ".attr() should not be used on arrays", however this appears to be precisely what is happening at this part of the code. I originally thought that I'd done something wrong in the initialisation, but I've been playing with it for the past 2 hours without success. Changing to ".is('tr')" suffers from the same problem. |
From systempa...@gmail.com on December 22, 2011 04:51:40 Sorry my fault, $$.is('TR') does work in this case after all. |
From iak...@gmail.com on March 27, 2012 23:47:07 As per http://bugs.jquery.com/ticket/9228#comment:3 , tagName cannot be fetched using the attr function as it is a property not an attribute. Use |
From stan.madueke on March 27, 2012 23:53:24 @iakbar: thanks for the link. I think |
From g...@warnes.net on February 21, 2014 14:41:39 I've made the change in my copy of the code to use $$.prop('tagName') and it is working happily now. |
Fixed in 1d57afe. |
From andreas....@gmail.com on November 15, 2011 21:31:41
Using the tagName approach does not work in Google Chrome with the jQuery 1.6.x. is() is generally more reliable and the patch is really small and should not introduce any regressions.
Attachment: django-dynamic-formset.patch
Original issue: http://code.google.com/p/django-dynamic-formset/issues/detail?id=40
The text was updated successfully, but these errors were encountered: