Dtd limit jscript in msie

hi people,

apparently, specifiying the dtd to xhtml strict 1.0 in a web document, limit the capabilities of jscript for msie/win. at least in version 6 with sp2. I was developing a specific script for msie in response to the style position:fixed because msie/win doesn’t interpret this property:

if(document.all && window.attachEvent){ 
attachEvent('onscroll', function(){ 
	var style = document.getElementById('myTable').style; 
	style.position = 'absolute'; 
	style.top = document.body.scrollTop + 30 + 'px'; 
	}); 
} 

the only way the script can work is if i don’t specify the dtd declaration. but i would like the code to work with the dtd xhtml strict 1.0. anyone have any information concerning to jscript and the dtd in msie/win? any comment is welcome…

thanks.