Skip to main content

Bug Tracker

Side navigation

#4725 closed bug (duplicate)

Opened June 04, 2009 09:29AM UTC

Closed November 19, 2010 01:32AM UTC

Last modified March 15, 2012 03:41PM UTC

serialize() and val() returns the option title for <select> fields in Konqueror 3 and 4

Reported by: vdboor Owned by:
Priority: major Milestone: 1.4
Component: core Version: 1.3.2
Keywords: Cc:
Blocked by: Blocking:
Description

When running $(form).serialize(), the <select> fields are not processed correctly. Instead of returning the value of the field, the title of the current option is returned.

This happens both in Konqueror 3 and 4.

When reading the value with the normal DOM API (select.value or select.options[ select.selectedIndex ].value) the proper value does get returned.

If this issue is also caused by a bug in Konqueror, I'd like to report this to bugs.kde.org too.

Attachments (0)
Change History (4)

Changed June 04, 2009 09:52AM UTC by vdboor comment:1

Digged a little deeper, it turns out the .specified field does not exist in Konqueror. This causes the following line to fail:

return (elem.attributes.value || {}).specified ? elem.value : elem.text;

Bug for Konqueror is reported here: https://bugs.kde.org/show_bug.cgi?id=195192

I guess the fix for jQuery would be testing for .specified !== false...?

Changed September 16, 2009 02:59PM UTC by sorccu comment:2

Happens in Nokia browsers as well. Confirmed in N95 and E90.

Changed November 19, 2010 01:32AM UTC by dmethvin comment:3

resolution: → duplicate
status: newclosed

Changed November 19, 2010 01:32AM UTC by dmethvin comment:4

Duplicate of #6932.