Ticket #920: Broken-mozilla.patch

File Broken-mozilla.patch, 735 bytes (added by johndrinkwater, 18 years ago)

Work-around (eugh) for Mozilla problem; apply to a clean rev1j

  • componentselect.js

     
    343343    // Interestingly, Opera picks up .names in getElementById(), hence it being at the end now
    344344    if ( $( 'component' ) )
    345345        reduceComponents( $( 'component' ), null, true ); // For the new ticket page
     346
     347
     348    // now we need to query any radio groups for Mozilla breakage: http://www.quirksmode.org/js/tests/moz_radios.html
     349    var brokMoz = document.getElementsBySelector('input[type="radio"]');
     350    if ( brokMoz.length > 0 ) {
     351        for (var i = 0; i < brokMoz.length; i++)
     352            { if (brokMoz[i]) brokMoz[i].checked = brokMoz[i].defaultChecked; }
     353    }
    346354}
    347355
    348356addEvent( window, 'load', initialiseComponents );