Fil ha scritto:
> Hello,
>
> there is (apparently) a bug in MSIE if we use getAttribute('action') on a
> form, because it will give us the action property of the form, instead of
> the value of its "action" input.
>
> Example :
>
> <form action="url">
> <input type="text" name="action" value="ok" />
> </form>
>
> this.getAttribute('action') should be "ok", not "url".
>
> A fix for this is to use:
> this.getAttributeNode('action').nodeValue
>
> (that's Renato's solution to fix form.js at
> http://zone.spip.org/trac/spip-zone/changeset/4794
>
>
Just to make you know I modified further jquery form plugin, to
eliminate a huge performance issue on forms with long <option> lists.
It is the case of the document form in SPIP that has 3 select for the
date value in single selection mode. Well, the standard serialize
function cycles *every* element in the form, all the options and even
div, span, not just input,select and textarea , when it is not really
needed. My change cycles only those elements and <option> only if
<select> are in multiple selection mode.
My performance test passed from more than 600ms to just 15ms in a
standard document form in SPIP. The worst thing if that all this
processing is sync, as it is done before the async POST.
Renato
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/