ivestigated it(ie6):
Code:
<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html id = 'html' ...
<body id = 'body' ....
Code:
alert(document.documentElement.getAttribute('id'));// returns htmlElement
alert(document.documentElement.getElementsByTagName('body')[0].getAttribute('id'));
this 2 lines works fine runned inside main page, inside iframe the first line is ok, the second line
is null or not an object
?