Indicate supported doctypes
Reported by tdf | May 16th, 2008 @ 10:11 AM | in Inline documentation
document.viewport.getHeight() return NULL on IE6
Should be patch with:
function ViewportHeight() {
var vHeight = document.viewport.getHeight();
if (!vHeight && document.body) vHeight = document.body.clientHeight; // For IE6
return vHeight;
}
Thanks for your great work,
Thierry
Comments and changes to this ticket
-
Nick Stakenburg May 16th, 2008 @ 10:13 AM
It's not a bug, you need a doctype, and this needs to be documented.
-

tdf May 16th, 2008 @ 10:17 AM
Thanks for your quick answer but what did you mean by: 'you need a doctype'?
-
Tobie Langel May 16th, 2008 @ 01:29 PM
- → Title changed from document.viewport.getHeight() on IE6 to Indicate supported doctypes
- → State changed from new to doc
- → Milestone changed from to Inline documentation
-

tdf May 19th, 2008 @ 07:29 PM
I have a doctype but with an extra line:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
I have just remove the first line:
<?xml version="1.0" encoding="utf-8"?>
and IE6 respond to document.viewport.getHeight();
Thanks for your help,
Thierry
-
John-David Dalton May 18th, 2008 @ 05:41 AM
- → Assigned user changed from to Tobie Langel
This ticket is * not * spam.
-
John-David Dalton May 29th, 2008 @ 02:28 AM
- no changes were found...
Please Login or create a free account to add a new comment.
You can update this ticket by sending an email to from your email client. (help)
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
The Prototype JavaScript library.
