Forum Moderators: open

Message Too Old, No Replies

Netscape 6 and DocTypes

         

toolman

10:59 pm on Dec 20, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Beware the doctype you use with Netscape 6....I just spent 6 hours trying to figure out why 2 identical sites had different results in everybody's favorite browser.

It was the doctype. I used a new extension to insert the doctype on one of the sites and when it dawned on me and I changed it to the old one..BAM.

This works:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"  
"http://www.w3.org/TR/REC-html40/loose.dtd">

This doesn't:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"  
"http://www.w3.org/TR/html4/loose.dtd">

I wouldn't usually care about our favorite hemmoroidicus browsicus but with my luck it would be the first thing some Y? editor would run up into the site with.

Marshall

4:53 am on Dec 21, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



toolman,

I think this was touched on before briefly. Actually, they both if you only use the first part
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

or

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

It's the second line that NN6 doesn't like for some reason. I had this same problem with one of my sites.

toolman

5:47 am on Dec 21, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Anybody need some hair...I pulled all mine out over a stupid thing like this?

Yeah I knew I had seen this before here...months ago. Still you never know what the bug is until you "find" it.

Son_House

10:10 am on Dec 21, 2001 (gmt 0)

10+ Year Member



I have not seen any problems with the doctype on our site with Netscape 6.2 and now 6.2.1 Might have happened with earlier versions of 6 but the site didn't have the second line at that time.

Most pages have this on one line:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

Some have this on two lines:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

I tried the one and two line thing to see if it made a difference in the different browsers and I have not see any.

Marshall

2:05 pm on Dec 21, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Son_House,

I do have sites where the entire tag isn't causing a problem. The one that was has a really complicated layout and I think that was the problem. The "simple" sites (if you will) don't seem to be affected. Regardless, I don't use the second line for that very reason - just being safe.

toolman

5:01 pm on Dec 21, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The pages in question relied heavily on css 1 and @import for minor css2 highlight effects. The funny thing is all the css worked fine but where it broke was in basic html layout that really had nothing to do with the css except for bgcolor. It was confounding to say the least.

Son_House

8:51 am on Dec 22, 2001 (gmt 0)

10+ Year Member



> The "simple" sites (if you will) don't seem to be affected.

That must be why we never had a problem with doctype, the site has a very simple layout.