Bug Tracker

Modify

Ticket #71 (closed bug: fixed)

Opened 7 years ago

Last modified 7 years ago

hide/show broken

Reported by: yehuda Owned by:
Priority: undecided Milestone:
Component: ajax Version:
Keywords: {empty} Cc: {empty}
Blocking: Blocked by:

Description

Test case:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html lang="en">
  <head>
    <script src="jquery.js" type="text/javascript"></script>
	<script type="text/javascript">
      $.fn.toggleDown = function() {
        if(this.css('display') == "none") {
          this.show("fast")
        } else {
          this.hide("fast")
        }
      }
	</script>
  </head>

  <body>
    <a href="#" onclick="$('#hide').toggleDown()">Toggle</a>
	<div id="hide">Stuff</div>
  </body>
</html>

In earlier versions (130), the stuff inside the hidden div doesn't get restored in IE when show() is called. It does fill up the old amount of space, but the opacity doesn't return to normal.

In later versions (143), Internet Explorer returns "0.nodeType is null or not an object" when hide() or show() is called. It claims it's on line 65, but that seems unlikely.

Change History

comment:1 Changed 7 years ago by yehuda

  • Status changed from new to closed
  • Resolution set to duplicate

comment:2 Changed 7 years ago by john

  • Status changed from new to closed
  • Type set to bug
  • Component set to ajax
  • Summary changed from {empty} to hide/show broken
  • Priority set to blocker
  • Resolution set to fixed

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.