Fix some HTML validation issue.

This commit is contained in:
Tom Hughes 2007-06-30 12:09:28 +00:00
parent 48a3a317bc
commit b92e1b0584
6 changed files with 65 additions and 89 deletions

View file

@ -87,6 +87,7 @@
var bottom = getStyle( el, 'bottom' );
var right = getStyle( el, 'right' );
var width = el.old_width;
var height;
if( ! width ) {
width = getStyle( el, 'width' );
}
@ -98,7 +99,7 @@
if( el.offsetParent.nodeName == 'BODY' || el.offsetParent.nodeName == 'HTML' ) {
if( typeof( window.innerWidth ) == 'number' ) {
pwidth = window.innerWidth;
height = window.innerHeight;
pheight = window.innerHeight;
} else if( document.documentElement &&
( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
pwidth = document.documentElement.clientWidth;