Bug Tracker

Changeset 4196 for trunk/jquery/test

Show
Ignore:
Timestamp:
12/17/07 01:58:05 (1 year ago)
Author:
davidserduke
Message:

Fixed #2037 where Opera would mis-state the value of 'display' after an innerHTML was done in some cases.

Location:
trunk/jquery/test
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/jquery/test/index.html

    r4143 r4196  
    173173            </form> 
    174174            <div id="nonnodes"><span>hi</span> there <!-- mon ami --></div> 
     175            <div id="t2037"> 
     176                <div><div class="hidden">hidden</div></div> 
     177            </div> 
    175178        </div> 
    176179    </div> 
  • trunk/jquery/test/unit/core.js

    r4172 r4196  
    421421 
    422422test("css(String, Object)", function() { 
    423     expect(20); 
     423    expect(21); 
    424424    ok( $('#foo').is(':visible'), 'Modifying CSS display: Assert element is visible'); 
    425425    $('#foo').css('display', 'none'); 
     
    455455    j.css("padding-left", "1px"); 
    456456    equals( j.css("padding-left"), "1px", "Check node,textnode,comment css works" ); 
     457 
     458    // opera sometimes doesn't update 'display' correctly, see #2037 
     459    $("#t2037")[0].innerHTML = $("#t2037")[0].innerHTML 
     460    equals( $("#t2037 .hidden").css("display"), "none", "Make sure browser thinks it is hidden" ); 
    457461}); 
    458462