473,795 Members | 2,911 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Browser version testing

I maintain an academic web site accessed regularly by schools without the
latest equipment. This means that Version 4 IE and NS browsers are frequent
visitors.

When I validate CSS and HTML, which versions and DOCTYPE should I test
against?

Thanks you,

Chris Hopkins
www.parthia.com
Jul 20 '05 #1
6 2398
In article <bs************ @ID-177935.news.uni-berlin.de> in
comp.infosystem s.www.authoring.stylesheets, Charax wrote:
I maintain an academic web site accessed regularly by schools without the
latest equipment. This means that Version 4 IE and NS browsers are frequent
visitors.

When I validate CSS and HTML, which versions and DOCTYPE should I test
against?
I'm not sure whether you just used terms carelessly, or actually
have a major misunderstandin g.

You should not (and should not need to) specify a DOCTYPE at
validation time. Rather, that DOCTYPE should be at the beginning of
your document. Which DOCTYPE should be in your document? The one
that describes the version of (X)HTML you're using.

For any new work, to reduce problems down the road, you should
specify HTML 4.01 Strict. There's a DOCTYPE for easy cut-and-paste
at http://www.w3.org/TR/html401/struct/...pe_declaration

Version-4 browsers should be able to copy just fine with HTML 4.01.
They may not implement all features -- and they will get some things
horribly wrong -- but the same would be true with other DOCTYPEs.
And by specifying HTML 4.01 Strict, you will be telling later
browsers not to emulate the bugs of earlier browsers.

--
Stan Brown, Oak Road Systems, Cortland County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2 spec: http://www.w3.org/TR/REC-CSS2/
2.1 changes: http://www.w3.org/TR/CSS21/changes.html
validator: http://jigsaw.w3.org/css-validator/
Jul 20 '05 #2
Thanks, Stan. So I understand the answer is to use 4.01 strict even though I
am targeting version 4 browsers.

Now about the CSS. For version 4 browsers, should I be using CSS1 or CSS2?
Or is there a complex matrix of which CSS syntax is understood by those
browsers?

Cheers,

Chris Hopkins
www.parthia.com
"Stan Brown" <th************ @fastmail.fm> wrote in message
news:MP******** *************** *@news.odyssey. net...
In article <bs************ @ID-177935.news.uni-berlin.de> in
comp.infosystem s.www.authoring.stylesheets, Charax wrote:
I maintain an academic web site accessed regularly by schools without the
latest equipment. This means that Version 4 IE and NS browsers are frequentvisitors.

When I validate CSS and HTML, which versions and DOCTYPE should I test
against?
I'm not sure whether you just used terms carelessly, or actually
have a major misunderstandin g.

You should not (and should not need to) specify a DOCTYPE at
validation time. Rather, that DOCTYPE should be at the beginning of
your document. Which DOCTYPE should be in your document? The one
that describes the version of (X)HTML you're using.

For any new work, to reduce problems down the road, you should
specify HTML 4.01 Strict. There's a DOCTYPE for easy cut-and-paste
at

http://www.w3.org/TR/html401/struct/...pe_declaration Version-4 browsers should be able to copy just fine with HTML 4.01.
They may not implement all features -- and they will get some things
horribly wrong -- but the same would be true with other DOCTYPEs.
And by specifying HTML 4.01 Strict, you will be telling later
browsers not to emulate the bugs of earlier browsers.

--
Stan Brown, Oak Road Systems, Cortland County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2 spec: http://www.w3.org/TR/REC-CSS2/
2.1 changes: http://www.w3.org/TR/CSS21/changes.html
validator: http://jigsaw.w3.org/css-validator/


Jul 20 '05 #3
In article <bs***********@ ID-177935.news.uni-berlin.de> in
comp.infosystem s.www.authoring.stylesheets, Charax wrote:
Now about the CSS. For version 4 browsers, should I be using CSS1 or CSS2?
Or is there a complex matrix of which CSS syntax is understood by those
browsers?


Please do not post upside down
<http://oakroadsystems. com/genl/unice.htm>. It is highly irritating
to a number of us, which means that it reduces your chances of
getting your question answered.

CSS2 pretty much includes CSS1, but both Netscape 4 and IE 4 do well
with some aspects of CSS1 and poorly with others. See
<http://www.blooberry.c om/indexdot/css/index.html> for extensive
details on quirks of browsers with CSS.

--
Stan Brown, Oak Road Systems, Cortland County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2 spec: http://www.w3.org/TR/REC-CSS2/
2.1 changes: http://www.w3.org/TR/CSS21/changes.html
validator: http://jigsaw.w3.org/css-validator/
Jul 20 '05 #4
Tim
On Mon, 29 Dec 2003 12:57:09 -0500,
"Charax" <ch******@ameri tech.net> wrote:
Thanks, Stan. So I understand the answer is to use 4.01 strict even though I
am targeting version 4 browsers.
What do you mean by "version 4 browsers"? If you mean something like
IE4, or Netscape 4, then that's nothing to do with HTML 4.x.
Now about the CSS. For version 4 browsers, should I be using CSS1 or CSS2?
Or is there a complex matrix of which CSS syntax is understood by those
browsers?


No browsers understand all of CSS, and some have different ideas about
how to do the same sort of thing. And since there's no way to say that
some CSS should be regarded as being CSS 1 or CSS 2, there's little
point in deliberately doing something in an old way, particularly if
there's been changes to CSS.

--
My "from" address is totally fake. The reply-to address is real, but
may be only temporary. Reply to usenet postings in the same place as
you read the message you're replying to.

This message was sent without a virus, please delete some files yourself.
Jul 20 '05 #5
In article <uf************ *************** *****@4ax.com> in
comp.infosystem s.www.authoring.stylesheets, Tim wrote:
No browsers understand all of CSS, and some have different ideas about
how to do the same sort of thing. And since there's no way to say that
some CSS should be regarded as being CSS 1 or CSS 2, there's little
point in deliberately doing something in an old way, particularly if
there's been changes to CSS.


That is one view, basically "I don't care how it looks in anything
below Mozilla 1.5." It's an author's choice to make, but I don't
think it's one that most people would endorse.

Another view is, "If there's an old way and a new way to do
something, more browsers are likely to react as I wish to the old
way. I must think of the tradeoffs between old and new, not just
blindly say that 'new is better'."

--
Stan Brown, Oak Road Systems, Cortland County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2 spec: http://www.w3.org/TR/REC-CSS2/
2.1 changes: http://www.w3.org/TR/CSS21/changes.html
validator: http://jigsaw.w3.org/css-validator/
Jul 20 '05 #6
On Mon, 29 Dec 2003 12:57:09 -0500, "Charax" <ch******@ameri tech.net>
wrote:
Thanks, Stan. So I understand the answer is to use 4.01 strict even though I
am targeting version 4 browsers.

Now about the CSS. For version 4 browsers, should I be using CSS1 or CSS2?
Or is there a complex matrix of which CSS syntax is understood by those
browsers?


It's pretty complex. Even parts of CSS1 are not supported at all
reliably. Given that not many people use NN4 / IE4 any more, it's
probably best to restrict yourself to a few simple colours and
backgrounds, or even hide all the CSS.
http://www.xs4all.nl/~sbpoley/webmatters/netscape4.html may help a bit.

--
Stephen Poley

http://www.xs4all.nl/~sbpoley/webmatters/
Jul 20 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
4418
by: Nancy | last post by:
I recently completed a web page, "Browser Tests of Entities in 2004". http://www.santagata.us/characters/CharacterEntities.html It shows those characters that work in all of the version 5.2+ browsers that were tested and those that only work in some of them. Take a look, maybe you'll consider it useful. This is not my field (I'm an architect - you know the house construction kind), so if you notice any inaccuracies I'd appreciate a...
13
2083
by: AMC | last post by:
Hi, I have the below code in an asp page. When I run this page in IE or Opera it correctly displays the header info and does not redirect me to 'test.html'. However, when I run this in Netscape it goes straight to the redirect page 'test.html' which indicates that javascript is not enabled and it also does not display the header info. Can someone tell me why this is happening? <%@ Language=VBScript%> <%'get header info
16
2876
by: Java script Dude | last post by:
To all Mozilla JS Guru's (IE dudes welcome), I have spent the last three years developing complex DHTML applications that must work in IE 5.5sp2+ but I use Mozilla 1.3+** to do all my development. I have build some cross browser debuggers so my users can send me verbose debug dumps. I have some success but have come to a roadblock with the basic underlying JavaScript models. The only way to get a complete stack in IE is to use the...
12
10177
by: Kepler | last post by:
How do you get the height of the client browser in IE? Both document.body.clientHeight and document.body.offsetHeight return the height of the document. If the page is long and there's a vertical scrollbar, you get the height of the entire document, screwing up any chance of centering a window in the browser using these values. Is there a way to get the height of the actual browser window and not the entire page height? Thanks.
17
2562
by: lawrence | last post by:
How is it possible that the question "How do I detect which browser the user has" is missing from this FAQ: http://www.faqts.com/knowledge_base/index.phtml/fid/125 and is only here on this with a link to old information that suggests use of "navigator": http://developer.irt.org/script/43.htm
8
4550
by: R. Smits | last post by:
I've have got this script, the only thing I want to be changed is the first part. It has to detect IE version 6 instead of just "Microsoft Internet Explorer". Can somebody help me out? I tried "Microsoft Internet Explorer 6" but that doesn't work. <SCRIPT LANGUAGE="Javascript"> <!-- bName = navigator.appName; if (bName =="Microsoft Internet Explorer") { document.write('<link media="screen" rel="STYLESHEET" type="text/css"
8
1688
by: Jimnbigd | last post by:
What is the recommended code to test browser type, for conditional processing in Javascript? I have seen tests for "document.all". I have seen tests for the actual browser name, or substrings in the browser name. What do you all recommend? Thanks...Jim...
5
3178
by: David Baker | last post by:
Hi all I am very new to ASP.Net. I am trying to create a sniffer for our program. We want our users to click our sniffer and hopefully the sniffer will check their computer against our requirements. I would like to ask experts like you to see which items are actually doable with ASP.Net. Below I listed all of the items we are looking for but I can understand if some of the items are impossible to check/sniff. We would like to create a sniffer...
27
2752
by: David Golightly | last post by:
This is just a quick poll for all you web devs out there: What browsers do you test on/are concerned about compatibility with? Obviously, you're going to test on current-generation browsers such as IE6, IE7, Firefox 1.5/2, Opera 8/9, Safari 2, etc. How old must a browser be before you stop worrying about it? Anybody here still test on IE4? Thanks,
10
3265
by: Conrad Lender | last post by:
In a recent thread in this group, I said that in some cases object detection and feature tests weren't sufficient in the development of cross-browser applications, and that there were situations where you could improve the application by detecting the browser vendor/version. Some of the posters here disagreed. Since then, I've had to deal with a few of these cases; some of them could be rewritten to use object detection, and some couldn't....
0
9519
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10439
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10215
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10165
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10001
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9043
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7541
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5437
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
3
2920
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.