Bug Tracker

Changeset 5623

Show
Ignore:
Timestamp:
05/16/08 18:37:11 (8 months ago)
Author:
aflesler
Message:

jquery core: Closes #2709, avoiding a bug on IE 6 when using globalEval and a base node is found.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/jquery/src/core.js

    r5622 r5623  
    638638                script.appendChild( document.createTextNode( data ) ); 
    639639 
    640             head.appendChild( script ); 
     640            // Use insertBefore instead of appendChild  to circumvent an IE6 bug. 
     641            // This arises when a base node is used (#2709). 
     642            head.insertBefore( script, head.firstChild ); 
    641643            head.removeChild( script ); 
    642644        }