What’s New in jQuery 1.4.4

    Craig Buckler
    Share

    The fourth minor release of jQuery 1.4 is now available — less than one month after 1.4.3 was released.

    Unsurprisingly, version 1.4.4 is primarily a set of bug fixes following feedback from the user community. There is only one new feature…

    jQuery.fadeToggle()

    The .fadeToggle() method provides fade-in and fade-out animation. If an element is visible, it’s opacity is reduced and, when it reaches zero, the display property is set to none so the element disappears from the page layout.

    Calling .fadeToggle() on an invisible element (where display:none is set) makes the item visible and fades it back in.

    Major bug fixes

    If you’ve been struggling to make your code work, you’ll be pleased to know that the following issues have been fixed:

    • The .width() and .height() of hidden elements are reported correctly (in some situations, previous versions would return negative values). This is likely to be the cause of most 1.4.3 to 1.4.4 update compatibility issues.
    • Host and protocol names are now compared case-insensitively when determining whether an Ajax request is local or remote.
    • Computed CSS for elements now returns “auto” consistently rather than an empty string.
    • A function bound to the document ready event will now fire once (it was firing twice).
    • The .removeData() failure has been fixed.
    • The attribute not equals selector ([foo!=bar]) now works in Firefox.
    • Child (>), next sibling (+), and previous sibling (~) selectors now work when combined with pseudo-selectors (such as :last).
    • .show() will not fail if .hide() was initially called on a hidden element.

    Links

    Grab jQuery 1.4.4 from:

    On to jQuery 1.5

    The next major jQuery release is due in early 2011. If you desperately need a new feature or want to suggest an improvement, you can create a new ticket and nominate it for version 1.5. Alternatively, please leave your comments below and we’ll make sure they’re passed on.