Declaring a doctype makes NS screw up
Hi, if you look here and then here in Netscape 7 (I think it works fine in 6, but haven't checked), the only difference (well, the only one that matters, anyways) is that the second is declaring
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
'
Changing to strict doesn't change anything. Any clues why that would would makes things screw up so drastically? Thanks
jkd posted this at 11:00 — 23rd October 2002.
They have: 21 posts
Joined: Oct 2000
Mozilla has a thing called "Quirks Mode" to simulate IE's horrible rendering. Not having a DTD will fire it.
Hit CTRL-I and see what rendering more it is in.
If it is in standards compliant mode, then you are actually expecting the page to render incorrectly. IE is rendering is wrong, while Moz is doing it correctly.
Supermod @ CodingForums.com
IanD posted this at 16:10 — 23rd October 2002.
They have: 222 posts
Joined: Sep 1999
That seems to be it, is there any way to use the DTD and still have it render the same way in IE and Netscape/Mozilla?
Busy posted this at 21:06 — 23rd October 2002.
He has: 6,151 posts
Joined: May 2001
Use the DOC tag to validate the page if nothing else, then remove it. Its just another thing that is to ahead of itself (or backwards) in the web today.
sometimes trying to find a work around is way to intense when you can just remove the tag, still have correct coding and page works similar in all browsers.
Suzanne posted this at 16:17 — 24th October 2002.
She has: 5,507 posts
Joined: Feb 2000
Actually, leave the DOCTYPE in, just either remover the url portion, or upgrade your code to a higher level.
It's a known issue with using table layouts and Netscape.
jkd posted this at 01:34 — 25th October 2002.
They have: 21 posts
Joined: Oct 2000
The issue is with Internet Explorer (and every single other non-Gecko browser), not Netscape 6+. This is a very important distinction to make.
Supermod @ CodingForums.com
Suzanne posted this at 02:34 — 25th October 2002.
She has: 5,507 posts
Joined: Feb 2000
heh... it's a perspective thing -- the known issue is that using what you think is fine code in Netscape has apparent display errors. Semantics aren't going to help people find out how to fix the problem.
jkd posted this at 03:06 — 25th October 2002.
They have: 21 posts
Joined: Oct 2000
When you can take a perspective from an absolute standpoint, it tends to be a little easier to defend.
Fact: The W3C HTML, XHTML, and CSS recommendations agree with Mozilla's interpretation and not any other browser's.
Therefore, every non-Mozilla web browser is incorrect in their interpretation of HTML.
Q.E.D.
It is up to you however if you want to code correctly.
Supermod @ CodingForums.com
Busy posted this at 03:50 — 25th October 2002.
He has: 6,151 posts
Joined: May 2001
Coding correctly and displaying correctly aren't the same thing.
I've had a site done to XHTML Strict that wouldn't align properly using the DOC tag, removed url part as Suzanne mentioned above but then wouldn't validate.
The old catch 22
Suzanne posted this at 04:46 — 25th October 2002.
She has: 5,507 posts
Joined: Feb 2000
Busy makes my point -- there is a difference, and a large one, between being precise and with being accurate.
Regardless, I didn't say that the problem was with Netscape doing something wrong. The problem is that it doesn't display properly in Netscape. People are going to look for that solution (why doesn't my table layout work in Netscape?), not think, oh, Netscape is perfect (not! there is no perfect browser, yet), it must be that the rest of the world is wrong.
However, there is no reason not to explain why the problem isn't Netscape, but rather complex table-layouts and W3C standards being in conflict after years of complex table-layouts and loose coding WERE the standards.
What I am saying is that sometimes people are just looking for an explanation, not the entire history of development of the software, and saying "it's a known issue" helps them a) not feel like idiots, and b) help other people who find the same apparent display "error" in Netscape 6+.
Busy posted this at 08:34 — 25th October 2002.
He has: 6,151 posts
Joined: May 2001
Lets burn our browsers and return to Dos
[que hippy music]
jkd posted this at 11:06 — 25th October 2002.
They have: 21 posts
Joined: Oct 2000
You have to remember that just because the source validates doesn't mean that it is doing what you want.
Why wouldn't your site layout as expected? Because you didn't know how to make it via standards. The blame is being shifted from the browser to the developer. In a standards-compliant browser, this is the way it is.
Your page *did* display correctly, but unfortunately your interpretation of "correctly" was wrong.
And Suzanne. Tables as presentational elements were never standards. It is something awful designers started doing on their own to get the most control over their layout at possible. No where in the HTML spec does it to say to use tables as anything else other than tools for presenting tabular data. It even says not to use tables for presentation in there a few times, simply because it wreaks havoc on accessibility.
Also, instead of saying there is nothing you can do it about it, perhaps you should look at this page on Netscape's own evangelism page:
http://devedge.netscape.com/viewsource/2002/img-table/
Supermod @ CodingForums.com
Busy posted this at 21:41 — 25th October 2002.
He has: 6,151 posts
Joined: May 2001
from the link jkd gave, IMO it is saying there isn't a foolproof fix out there at the moment, the page does give some workarounds that sometimes work but since there are so many ways to out a table structure not all will work.
Suzanne posted this at 00:05 — 26th October 2002.
She has: 5,507 posts
Joined: Feb 2000
Sweety, you're doing that semantic thing again... The standards of yesteryear were not defined by any body, but rather by what we all were doing. It was the usage standard to which I was speaking.
No, it's something that designers did that pushed the web to newer heights. The proprietary code from browser developers (including some that has since become part of the official recommendations and specifications of different levels of HTML and XHTML) and the use of tables and other "wrong" things pushed the development of CSS and XML.
Which is something that has been REVOKED for XHTML. Tables for presentational items are perfectly valid usage now. Even according to the specs. For accessibility, thought is needed, and summary and some consideration. But tables are most definitely valid in all senses of the word.
There is a lot you can do about it. I didn't say there was nothing you could do, just that it's a KNOWN ISSUE.
You can change how you code, you can follow the advice on that page (which I actually recommend to people, amusingly) and make alterations in your CSS, et cetera. You can abolish the use of presentational tables, you can change how the presentational tables are used (no need for seamless tiles?)...
I'm happy to discuss this with you, but please stick to the facts and don't put words in my mouth. I didn't say there was nothing you could do, I didn't say that it was a problem with Netscape, et cetera.
You'll make better points if you work to help people understand instead of trying to show me up.
jkd posted this at 03:55 — 26th October 2002.
They have: 21 posts
Joined: Oct 2000
There is a big difference between valid and correct. "Valid" only means it validates against the supplied DTD or XML Scheme. "Correct" means you actually followed all the guidelines you should follow when writing your markup.
Using tables as presentational elements may be valid, but is an entirely incorrect practice.
I won't bother to reply to your last comment discrediting me either, it really isn't relevant at all to this thread. Feel free to pm me if you have any concerns.
Supermod @ CodingForums.com
dk01 posted this at 12:12 — 26th October 2002.
He has: 516 posts
Joined: Mar 2002
I don't get it. If we have the W3C to tell us what is valid then who is anyone to say what is a correct or incorrect practice. I think that without people challenging what has been labled as "correct" the industry has been able to evolve.
-dk
jkd posted this at 15:38 — 26th October 2002.
They have: 21 posts
Joined: Oct 2000
*sigh* I give up. I obviously cannot convince anyone at these forums why web standards are a *good* thing, along with accessibity, though it should be self-evident for anyone willing to admit that maybe they were wrong at least once in their past about how they made their websites.
Take a look around w3.org sometime, perhaps you'll learn something about where the future of the World Wide Web is heading.
Supermod @ CodingForums.com
Suzanne posted this at 18:58 — 26th October 2002.
She has: 5,507 posts
Joined: Feb 2000
Dude, I'm a standards advocate. I also code to xhtml 1.0 strict and use css positioning and usability and accessibility are my primary concerns.
My only issue with you is that you're arguing the wrong thing -- we don't need to tell people how wrong they are and how bad they are, we need to educate them about a better way of doing things. Being negative and blaming isn't going to do that. Explaining how to achieve the results is.
Perhaps if you actually try to help instead of trying to prove how much you know, it would be more effective, mm?
Suzanne posted this at 19:00 — 26th October 2002.
She has: 5,507 posts
Joined: Feb 2000
That's not true. It was revised from saying tables shouldn't be used for presentational display at all, to saying that they were "correct" for presentational display. Certainly it's not ideal in most situations, but it is for some, and there is nothing inaccessible about them if they are done correctly.
I wasn't trying to discredit you, I was attempting to prevent YOU from discrediting ME by arguing against things I didn't say.
jkd posted this at 19:57 — 26th October 2002.
They have: 21 posts
Joined: Oct 2000
If I actually tried to help? I have well over 8 thousand posts combined from other forums. If we assume I was only helpful half the time (though it is a lot closer to 95%, if not higher), I've still helped on more occasions than you have even posted.
I don't see why you continue on discrediting my character. I have yet to say anything negative about you, although you continuing on this tangent completely unrelated to the thread has certainly presented me with a negative opinion of you, and these forums (as a moderator, you should represent the forums).
Supermod @ CodingForums.com
Busy posted this at 21:06 — 26th October 2002.
He has: 6,151 posts
Joined: May 2001
This is getting way off topic.
We know the W3C standards are recommended guidelines
We know there are a lot of ways to do different things, no real right and wrong.
We know there are a few version of everything floating around at the moment (HTML,XHTML, CSS1, CSS2 ...), so is hard to keep track of whats what.
The thing you have to remember is that W3C isn't a web god, they just make up the recommend standards that can be followed, but never have been fully followed since the start. thats why we have so many tags that arent universal.
They are human and do mess up, like us all, example
is a 100% valid XHTML tag, but it's not the correct tag as we all know from experience that using the width and height is a must or the page jumps around on loading and can slow down load time.
I do follow the standards, my HTML how to site only shows what is universal, my sites follow XHTML trans as minimum
Suzanne posted this at 00:47 — 27th October 2002.
She has: 5,507 posts
Joined: Feb 2000
I'm not going to get into a pissing contest with you about who's posted more on how many forums! Good grief! I've stated clearly, and repeatedly, that my issue is that you keep arguing against things I'm not saying.
I am NOT discrediting your character, you're doing a fine job of that all by yourself. I'm sorry you've decided to take this personally. Whether you have helped people elsewhere is irrelevant. The stance you are taking (absolutist, that people have to admit that they were "wrong" when they were following current usage standards, et cetera) is not helpful HERE.
Please do not bring in everything and the kitchen sink to this! If you want to debate standards and coding practices, by all means, let's continue. Otherwise, as long as you don't accuse me of saying things I haven't said, you can just argue with yourself about my character.
dk01 posted this at 09:38 — 27th October 2002.
He has: 516 posts
Joined: Mar 2002
youch! This thread calls for virtual beers all around!
-dk
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.