Wrox Programmer Forums
|
HTML Code Clinic Do you have some HTML code you'd like to share and get suggestions from others for tweaking or improving it? This discussion is the place.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the HTML Code Clinic section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 12th, 2004, 03:31 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,110
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Thanks meow. Does removing the !DOCTYPE declaration have any negative effects?

 
Old May 12th, 2004, 04:20 PM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 1,285
Thanks: 0
Thanked 2 Times in 2 Posts
Default

I saw this on another site:

Quote:
quote:
You want to have a valid DOCTYPE, which is future compatible
with browsers as they become more and more compliant.
HTH,

Snib

<><
 
Old May 13th, 2004, 07:41 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,110
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Thanks Snib.

 
Old May 13th, 2004, 09:22 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 256
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Browsers are seldom consistent in their quirks. The quirks of IE 4.0 are not those of IE 5.5, and those displayed by IE 6.0 are not all shared by IE 5.5.

For instance, it is impossible to get IE 5.5 or IE 6.0 to support the very useful position: fixed attribute of CSS, since niether supports it - even though more modern browsers do. You can provide a proprietary hack, which simulates the effect of position: fixed, but doesn't work in any other browser. Although this will simulate position: fixed in IE 5.5 and IE 6.0, there is no reason to suppose the future versions of IE will support this hack, either, or any of the other quirks currently displayed by IE 6.0.

Bear in mind, also, that future versions of IE are going to be tied irrevocably to their operating systems (active development of the browser within Microsoft, as an independant product has, in fact, ceased). The upgrade cycle of versions will thus become stretched across time even further, than it is now, as a result: users of Internet Explorer for Longhorn 1.0 simply will not be able to upgrade the version used by Longhorn 1.x, 2.x, etc..

Uing the 'bang-doctype' at least forces a browser into what it thinks is standards-compliant, and so you are, effectively, coding out what could well actually become and ever-increasing number of quirks in future browsers. (Yes, we're told that browsers in future will become more and more standards-compliant; and as long as efforts like Mozilla continue, and developers keep forcing browsers into at least some semblance of standards-compliance and ignore their many bugs, then there is a chance that they will). However, on current form, there is no reason to suppose that commercial browser manufacturers will suddenly discover any commercial imperative for them to remain standards-compliant, just for the fun of it - especially if coding-in new "cool features" (i.e. quirks) could cause older browsers to break, and become a means of driving operating system upgardes, or software purchases - I'm not singling Microsoft out in this respect, either. If Netscape had remained a commercial, paid-for product, then it would have been in Netscape Corporation's interest to introduce an ever-increasing range of non-standard tags, such as the scrolling <marquee> and the <blink> (which, of course, they did - for exactly the same set of reasons and motivations that people often come down on Microsoft so hard, for having).
 
Old May 19th, 2004, 01:56 AM
Registered User
 
Join Date: May 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for all your information!


.NET Guru!





Similar Threads
Thread Thread Starter Forum Replies Last Post
javascript+netscape sasidhar79 Javascript How-To 1 October 19th, 2004 05:52 AM
SCRIPT WORKS WITH IE BUT NOT NETSCAPE!!! elisabeth Javascript How-To 5 October 6th, 2004 03:25 AM
Netscape and activex cirudinezidane Javascript How-To 1 March 11th, 2004 04:34 AM
redirect netscape 4.7 to netscape 7.1 trangd Beginning PHP 10 January 15th, 2004 04:30 PM
CSS in Netscape cjo XML 4 October 26th, 2003 05:23 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.