[Kss-devel] Weird behaviour with kssSubmitForm and empty selects
Jeroen Vloothuis
jeroen.vloothuis at xs4all.nl
Mon Oct 8 16:06:01 CEST 2007
Martin Aspeli wrote:
> I suspect there's some code like:
>
> if not value:
> value = label
>
> but ... that's wrong. ;-)
There is indeed some code in there which does this. I am guessing it is
there for the case when there is no value specified on an option. This
seems to have the unfortunate side effect you described. It would be
nice to be able to detect an empty value. We will need to look into if
this could made to work. There is a hasAttribute method on the DOM.
Unfortunately IE 6 does not support this:
http://www.quirksmode.org/dom/w3c_core.html
Maybe there is some workaround for this in IE.
More information about the Kss-devel
mailing list