[jQuery] [validate] addWrapper bug

[jQuery] [validate] addWrapper bug


Hi,
I'm currently using the validation plugin. However I ran into some
problems.
When I use "div" (or even "ul") as a wrapper, if there is a validation
error and I correct it, the whole form disappear, in fact the whole
"body" element is marked as "display: none".
I did a search on Google and found out that this has been briefly
discussed at : http://bassistance.de/jquery-plugins/jquery-plugin-validation/#comment-50074
(read the comment of Michiel Thalen) , and Jorn also said that the fix
will be included. However I checked the latest CVS and nothing
changed.
As far as I tried, changing:
toToggle.push( toToggle.parents( this.settings.wrapper ) );
to:
toToggle.push( toToggle.parent() );
fixes this problem. But I am not certain that this change will affect
any other behaviors of the plugin.
I guess this is a pretty annoying bug that should be fixed in the next
release.
Thanks