On Tue, Jun 9, 2009 at 12:59 PM, Nancy Johnson<njohnso...@gmail.com> wrote:
> However, because of the javascript it worked fine in IE6 and 7.

Also, you should probably put that JavaScript in a conditional
comment, so only IE sees it. Firefox 3, Safari, and Opera don't have a
problem, it seems, with "nonstandard" HTML 4 elements like <header>.

The conditional comment you want is:

<!--[if IE]><script>document.createElement('header');</script><![endif]-->

And note that in HTML5, you are correct in omitting the type attribute
from your script and style elements, as you're using the "defaults"
("text/javascript" and "text/css" respectively).


Erik
______________________________________________________________________
css-discuss [cs...@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to