Hello there,
I found what looks like a bug to me with IE6. I'm using the document.body.offsetHeight property, and with no dtd or an html dtd, it gives the correct answer (in my case 906). However, using an xhmtl dtd, like
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"<html xmlns="it now, gives 0, which ruins the whole javascript. I think it's a bug because it still give the correct answer for offsetWidth. It just has problem with offsetHeight.
Has anyone else experienced this, and if, yes, did you find any work-around?
Here is the code, in case you wanna give it a try:
winW = document.body.offsetWidth
winH = document.body.offsetHeight
document.writeln(winH)
document.writeln(winW)
Thanks in advance and cheers,
Xavier
PS: Does anyone know any bug database for IE6?
I found what looks like a bug to me with IE6. I'm using the document.body.offsetHeight property, and with no dtd or an html dtd, it gives the correct answer (in my case 906). However, using an xhmtl dtd, like
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"<html xmlns="it now, gives 0, which ruins the whole javascript. I think it's a bug because it still give the correct answer for offsetWidth. It just has problem with offsetHeight.
Has anyone else experienced this, and if, yes, did you find any work-around?
Here is the code, in case you wanna give it a try:
winW = document.body.offsetWidth
winH = document.body.offsetHeight
document.writeln(winH)
document.writeln(winW)
Thanks in advance and cheers,
Xavier
PS: Does anyone know any bug database for IE6?