Bug Tracker

Opened 5 years ago

Closed 5 years ago

#11724 closed bug (fixed)

$(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)

Change History (3)

comment:1 Changed 5 years ago by sindresorhus

Cc: mikesherov added
Component: unfileddimensions
Priority: undecidedlow
Status: newopen

Confirmed in Firefox 11 and 12.

comment:2 Changed 5 years ago by mikesherov

Milestone: None1.8
Owner: set to mikesherov
Priority: lowhigh
Status: openassigned

comment:3 Changed 5 years ago by Mike Sherov

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

Note: See TracTickets for help on using tickets.