valid HTML vs. supporting older browsers

Bojan Antonovic <[email protected]>
Newsgroups gmane.os.openbsd.www
Message-ID <[email protected]>
According to the FAQ http://openbsd.org/faq/faq8.html#wwwnotstd, OpenBSD 
wants to support "older" browsers, instead of having a complete support 
of valid HTML. Here two points:

1. There are only two "old" browsers, which understand everything in 
quirks mode: Netscape <6 and IE <6. Their market shares are 0.1% and 
1.5%. All other understand (X) HTML in standards mode. So, there is no 
point in supporting old browser and blocking the others.

2. The page www.openbsd.org uses two IE-only attributes 
(topmargin,leftmargin) and two Netscape-only attributes (marginheight, 
marginwidth). All 4 were never been in the standards. Solution: Since 
the times of Netscape 4 and IE 3 (!) is a standards compliant solution:

<body style="margin-left:0px; margin-right:0px; margin-top:0px; 
margin-bottom:0px">

or simpler:

<body style="margin:0;">

or for NC 4:

<style type="text/css">

body
{
   margin:0;
}

</style>

Source of the solution: de.selfhtml.org.

Hope, the two points helped.

Sorry, if I can't help OpenBSD more directly like by coding. I'm a Java 
developer and won't go back to C++. But I do mention Open BSD and 
OpenBSD's QA to other people.

greetings

    Bojan
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.