Annoying Mozilla Form Bug

Doing some work on quizmeBC over the last week or so, and I ran into a particularly annoying form bug in Mozilla/Gecko browsers. It seems that if form elements are place inside and outside of a table, it will cause Mozilla to refresh the form’s state incorrectly upon reload or browsing back in history. In my particular situation, each selected radio button would move up one option in the radio group upon every refresh, until nothing was select any longer.

The fix was to move a hidden form element that existed outside of the table into the table. This stopped this weird and very annoying behaviour. It was certainly hard to figure out, and a little tricky to find on Bugzilla too.

Leave a Comment

You must be logged in to post a comment.