Bug Tracker

Ticket #11724 (closed bug: fixed)

Opened 3 years ago

Last modified 3 years ago

$(document).height() changed in Firefox 12

Reported by: David Owned by: mikesherov
Priority: high Milestone: 1.8
Component: dimensions Version: 1.7.2
Keywords: Cc: mikesherov
Blocking: Blocked by:


I believe the fix for Ticket #3838 (http://bugs.jquery.com/ticket/3838) changed the value of $(document).height() in Firefox (using 12). While in Chrome and IE9 the value is consistent.

I can't reproduce this in jsFiddle as I think the result iframe's css works around this issue but this pastebin (  http://pastebin.com/MaUuLjU2) will demonstrate the problem.

In 1.7.1, the scrollHeight of the body element will be returned, while in 1.7.2 the clientHeight of the html element will be returned.

(I reported this in the comments of ticket #3838 - http://bugs.jquery.com/ticket/3838#comment:14)

Change History

comment:1 Changed 3 years ago by sindresorhus

  • Cc mikesherov added
  • Priority changed from undecided to low
  • Status changed from new to open
  • Component changed from unfiled to dimensions

Confirmed in Firefox 11 and 12.

comment:2 Changed 3 years ago by mikesherov

  • Owner set to mikesherov
  • Priority changed from low to high
  • Status changed from open to assigned
  • Milestone changed from None to 1.8

comment:3 Changed 3 years ago by Mike Sherov

  • Status changed from assigned to closed
  • Resolution set to fixed

Fix #11724, $(document).height() in Firefox 12. Closes gh-802.

This reopens #3838 for IE6 which is a regression on a fix in 1.7.2, but we'd rather break a really old IE than a really recent Firefox.

Changeset: ba70f8aeb60038ae73b188e432c471f3b115a790

Note: See TracTickets for help on using tickets.