Jan 23, 2008

Can't use "document.body" on Safari.

It's impossible to use "document.body" on Safari when the web page is XHTML.
Then this code return "undefined".

alert(typeof(document.body));



But it comes no always.
What is the condition?


"document.documentElement" is OK.

No comments: