Skip to main content

Bug Tracker

Side navigation

#12584 closed bug (fixed)

Opened September 21, 2012 10:16AM UTC

Closed October 22, 2012 04:46PM UTC

jQuery wrongly serializes <select> with one disabled <option>

Reported by: michal.cichra Owned by: gibson042
Priority: low Milestone: 1.9
Component: attributes Version: 1.8.1
Keywords: Cc:
Blocked by: Blocking:


I found issue when I tried to get value of <select> which had just one <option> and that option had disabled attribute.

Here is scenario to reproduce -

Bug is caused by code fixing issue #2551 -

What it should do? As normal browser - return nothing.

Attachments (0)
Change History (4)

Changed September 21, 2012 01:15PM UTC by dmethvin comment:1

component: unfiledattributes
milestone: None1.9
priority: undecidedlow
status: newopen

Thanks for the clear bug report! I agree, looks like that patch doesn't take disabled options into account. It must not be a common case, judging by how long the bug has been there.

Changed September 21, 2012 03:59PM UTC by gibson042 comment:2

owner: → gibson042
status: openassigned

Changed September 21, 2012 04:03PM UTC by michal.cichra comment:3

Wow! I'm stunned! Thank you very much. Keep up amazing work.

Changed October 22, 2012 04:46PM UTC by gibson042 comment:4

resolution: → fixed
status: assignedclosed