Skip to main content

Bug Tracker

Side navigation

#11724 closed bug (fixed)

Opened May 08, 2012 01:28AM UTC

Closed May 31, 2012 04:32PM UTC

$(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
Blocked by: Blocking:
Description

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)

Attachments (0)
Change History (3)

Changed May 09, 2012 03:46PM UTC by sindresorhus comment:1

cc: → mikesherov
component: unfileddimensions
priority: undecidedlow
status: newopen

Confirmed in Firefox 11 and 12.

Changed May 29, 2012 02:04AM UTC by mikesherov comment:2

milestone: None1.8
owner: → mikesherov
priority: lowhigh
status: openassigned

Changed May 31, 2012 04:32PM UTC by Mike Sherov comment:3

resolution: → fixed
status: assignedclosed

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