#3838 closed bug (wontfix)
$(document).height() incorrect in IE6
Reported by: | scottgonzalez | Owned by: | mikesherov |
---|---|---|---|
Priority: | low | Milestone: | |
Component: | dimensions | Version: | 1.2.6 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
When the document is smaller than the window, $(document).height() returns a value that is slightly larger than the window.
Change History (17)
comment:1 Changed 14 years ago by
comment:2 Changed 14 years ago by
I believe we just need to take the clientLeft and clientTop into consideration... just like we have to do in offset
comment:4 Changed 12 years ago by
Milestone: | 1.3 |
---|---|
Resolution: | → invalid |
Status: | open → closed |
Closing due to lack of test case.
comment:5 Changed 12 years ago by
Resolution: | invalid |
---|---|
Status: | closed → reopened |
The document has no content, so the document height should match the window height: http://temp.nemikor.com/height.html
comment:6 Changed 12 years ago by
Milestone: | → 1.next |
---|---|
Priority: | major → low |
Status: | reopened → open |
reproduced on jsfiddle: http://jsfiddle.net/timmywil/AFG2F/2/show/
comment:8 Changed 11 years ago by
Owner: | changed from brandon to mikesherov |
---|---|
Status: | open → assigned |
I'm going to see if I can whip up a quick patch for this ridiculously old bug. Be back shortly.
comment:9 Changed 11 years ago by
Summary: | $(document).height() incorrect in IE 6 → $(document).height() incorrect in IE6 + IE8 |
---|
comment:10 Changed 11 years ago by
Summary: | $(document).height() incorrect in IE6 + IE8 → $(document).height() incorrect in IE6 |
---|
comment:12 Changed 11 years ago by
Milestone: | 1.next → 1.7.2 |
---|
comment:13 Changed 11 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Fix #3838, $(document).height() incorrect in IE6
May still be broken in Netscape Navigator 4.
Changeset: 5cae50e66e34c277412c01ccb1c24bd6a85d2d8a
comment:14 Changed 11 years ago by
I believe this fix 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.
Thank you.
comment:15 Changed 11 years ago by
Milestone: | 1.7.2 |
---|---|
Resolution: | fixed |
Status: | closed → reopened |
comment:16 Changed 11 years ago by
Resolution: | → wontfix |
---|---|
Status: | reopened → closed |
See #11724. Firefox 12 > IE 6
Which version of jQuery does this occur in?