homepage Welcome to WebmasterWorld Guest from 54.167.138.53
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / HTML
Forum Library, Charter, Moderators: incrediBILL

HTML Forum

    
DOCTYPE in new versions of IE
time to clean up the code
bill




msg:617083
 4:40 am on Apr 11, 2001 (gmt 0)

[url=www.webreference.com/dhtml/column51/3.html]Stumbled[/url] across this statement recently:
IE5 Macintosh and IE6Win read DOCTYPE and if a DTD URL is specified, load the DTD and compare your document's syntax against it. If your document does not comply completely with the DTD, a syntax error may be generated.

Does this mean we're going to need to validate ALL of our pages or make custom DTD files? [url=hotwired.lycos.com/webmonkey/01/14/index0a.html]WebMonkey[/url] seems to say that IE6 will be capable of switching between DTDs. Maybe this is why Microsoft seems to be easing FrontPage out of the Office XP package...

Edited by: bill

 

tedster




msg:617084
 5:34 am on Apr 11, 2001 (gmt 0)

As I read this, you can omit the DOCTYPE and IE will default to parsing the page as earlier versions did. You would only need to worry if you want to access new possibilities of a more "advanced" DOCTYPE.

bill




msg:617085
 1:14 pm on Apr 8, 2001 (gmt 0)

So some of us who might add the DTD to our pages for the purpose of validating them, may have to watch out if our pages do not validate 100%. Sure my templates may validate completely, but maybe I've added some affiliate code or a search box, or maybe a tracking code...or maybe something as innocent as:

<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">

This alone would trip an IE6 syntax error. So, our alternative would be to remove the DTD reference or write a custom DTD to link to.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / HTML
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved