determine canvas size in XHTML 1.0
EDIT: OK. After more testing, I've come to the conclusion that under "standards-compliant mode" the canvas size is no longer accessed through window.document.body.offsetHeight in IE6. according to MS's documentation, its accessed through the html object but i cannot for the life of me figure out what the code i use to access it is. i've tried window.html, window.document.html, just html, and window.document.body.html and none of them seem to give me the object. someone help!
i have a page that has:
<div id="main" style="height: expression(eval(window.document.body.offsetHeight))">
and this works as expected when the DOCTYPE is
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
but when i change it to
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1-transitional.dtd">
it not longer works in IE 6.0. Why does IE support expressions for HTML 4 but not for XHTML?
EDIT: after some more testing, its not the dynamic expression thats not working, its the value of window.document.body.offsetHeight is always being returned as zero. why is this?