Ticket #8879 (closed bug: cantfix)

Opened 22 months ago

Last modified 22 months ago

Accordion: Setting maxlength on an input inside an accordion panel sometimes fails in Firefox

Reported by: debugginglife Owned by:
Priority: minor Milestone: 1.10.0
Component: ui.accordion Version: 1.9.2
Keywords: Cc:
Blocking: Blocked by:

Description

When i use accordion feature in two panels and try to set maxlength of an input field by using a js function in other panel, the maxlength value changes in mozilla Firefox in value (i checked via firebug) however it does not change on the field (you can not edit).

It works fine for chrome but not Firefox. Is this a real bug and what is the solution?

You can see the bug in detail:  http://jsfiddle.net/Jc3uc/1/

To see error: at start the maxlength sets to 4. when you open second tab and click the link it aims to set it to 45. however the maxlength value changes but you can not edit the field

Change History

comment:1 Changed 22 months ago by scott.gonzalez

  • Status changed from new to open
  • Summary changed from input[text] maxlength seems to be set however it can not be set on Firefox. to Accordion: Setting maxlength on an input inside an accordion panel sometimes fails in Firefox

Reduced test case:  http://jsfiddle.net/Jc3uc/2/

comment:2 Changed 22 months ago by tj.vantoll

Interestingly the example works as expected in Firefox 3.6 and fails in Firefox >= 4.

comment:3 Changed 22 months ago by scott.gonzalez

  • Status changed from open to closed
  • Resolution set to cantfix

This is not something we can fix:  http://jsbin.com/enidok/1/edit

I'll report this to Mozilla.

comment:5 Changed 22 months ago by debugginglife

Thanks Scott...

 http://jsbin.com/enidok/3/edit

when you make elem.maxLength = 10; with Capital 'L' it works, may it lead to a solution ?

Last edited 22 months ago by debugginglife (previous) (diff)

comment:6 Changed 22 months ago by scott.gonzalez

Thanks for catching that. I missed something important in my reduction because the failure was masked by the incorrect capitalization of the property name. It turns out the problem only occurs if the original maxlength and style are set via JS. I've updated the test case that I submitted to Mozilla, you can see it here:  http://dev-test.nemikor.com/bugs/firefox/maxlength-on-display-none-input.html

Note: See TracTickets for help on using tickets.