Bug 20569

Summary: document.height is inconsistent with other browsers
Product: WebKit Reporter: Eric Roman <eroman>
Component: DOMAssignee: Nobody <webkit-unassigned>
Status: RESOLVED CONFIGURATION CHANGED    
Severity: Normal CC: ahmad.saleem792, ap, bfulgham, rniwa
Priority: P2 Keywords: HasReduction
Version: 528+ (Nightly build)   
Hardware: PC   
OS: OS X 10.5   
Attachments:
Description Flags
In strict mode, only document.height differs between Firefox and Safari
none
In quirks mode, there are other differences between WebKit and Gecko. However document.height is still different in the same way none

Eric Roman
Reported 2008-08-29 11:39:57 PDT
document.height is inconsistent with Gecko (and other browsers don't support it) In Firefox, it looks like: document.height = document.body.clientHeight Whereas in Safari it looks like: document.height = max{window.innerHeight, document.body.clientHeight} Since other browsers don't support document.height, I think WebKit should just match Gecko. Note that the behavior of document.height is consistent in both strict and quirks mode (unfortunately the same can't be said for other document/body measurements).
Attachments
In strict mode, only document.height differs between Firefox and Safari (3.21 KB, text/html)
2008-08-29 11:41 PDT, Eric Roman
no flags
In quirks mode, there are other differences between WebKit and Gecko. However document.height is still different in the same way (3.08 KB, text/html)
2008-08-29 11:42 PDT, Eric Roman
no flags
Eric Roman
Comment 1 2008-08-29 11:41:02 PDT
Created attachment 23073 [details] In strict mode, only document.height differs between Firefox and Safari
Eric Roman
Comment 2 2008-08-29 11:42:18 PDT
Created attachment 23074 [details] In quirks mode, there are other differences between WebKit and Gecko. However document.height is still different in the same way
Ahmad Saleem
Comment 3 2022-07-30 05:45:58 PDT
In all browsers now both below are same: document.height = undefined document.width = undefined I tested it in Safari 15.6, Chrome Canary 106 and Firefox Nightly 105. I think it might have been changed in Firefox or support was dropped but just wanted to share updated results. Since it is now same across all browsers, I think this can be marked as "RESOLVED CONFIGURATION CHANGED". Thanks!
Note You need to log in before you can comment on or make changes to this bug.