A Conversation for Website Developer's Forum

Which Web Standard..?

Post 21

dElaphant (and Zeppo his dog (and Gummo, Zeppos dog)) - Left my apostrophes at the BBC

With Mozilla you can click on the "View" menu then "Page Info" and it tells you what mode it's in. I'm on a Mac so I can't check it, but doesn't the "Page Properties" in IE 6 do the same thing?
smiley - dog


Which Web Standard..?

Post 22

C Hawke

No - Just says "HTML Document" even if the page (like this one) doesn't have a !DOCTYPE at the top

CH


Which Web Standard..?

Post 23

Ion the Naysayer

I believe IE5 had a more limited "standards" mode than IE6 but I could be wrong...


Which Web Standard..?

Post 24

DoctorMO (Keeper of the Computer, Guru, Community Artist)

I didn't think IE implermented standards, I thought it just implermented ideas.

like, "Oh this would be a good idea, an object propertie in the do~da"

smiley - laughable

-- DoctorMO --


Which Web Standard..?

Post 25

Ion the Naysayer

Internet Explorer is perfectly standards compliant.

If you have a very liberal definition of the word "standard".


Which Web Standard..?

Post 26

DoctorMO (Keeper of the Computer, Guru, Community Artist)

>> Internet Explorer is perfectly standards compliant. <<

smiley - laughsmiley - laughsmiley - laugh

It's about as compliant as a placebo is an active drug, libral is not the word for it, I don't just make a website for each browser I have to make a website for each version of IE, because of there libralism. (and thats a joke in it's self)

-- DoctorMO --


Which Web Standard..?

Post 27

Ion the Naysayer

I've given up on doing anything special with IE and just serve it a straight HTML 4.01 or XHTML 1.0 document. Haven't had anyone complain yet.


Which Web Standard..?

Post 28

DoctorMO (Keeper of the Computer, Guru, Community Artist)

Ah yes and here's me messing with the DOM, JavaScript and Perl with Linux development platform. Oh yes, I see perfectly well how complient IE is.

-- DoctorMO --


Which Web Standard..?

Post 29

Ion the Naysayer

I tinker with cool stuff like DOM and JavaScript under browsers that aren't stupid. Browser detection is my friend.


Which Web Standard..?

Post 30

DoctorMO (Keeper of the Computer, Guru, Community Artist)

Please don't use if(Browser == "Microsoft Internet Explorer") too much, you know the W3C recomend you check for the function or property rather than the browser, it's a little difrent when it comes to positioning things on a document, do you know how many way there are of calling the left/top/height/width of objects that dosn't work with most but one or two. Ah!!!

-- DoctorMO --


Which Web Standard..?

Post 31

Ion the Naysayer

Heh... I'm aware of what the W3C says. Then again the W3C doesn't follow its own advice at this particular moment. Try viewing http://society2x03.dhs.org, which uses the W3C core styles, under different browsers. Chances are you'll get a different looking page. Mozilla and Phoenix should render it the same (they're the same engine, after all) but they don't.

The way I do detection for most of my websites is this:
Trap Netscape versions below 5.0 and strip out most of the CSS.
Trap Mozilla 5.x+ and send the bells and whistles like DOM calls and complex JavaScripts.
Any other user agent gets vanilla HTML and CSS (possibly simple JavaScript as well).

That way I'm not excluding anyone, and specific enhancements I make for Mozilla get masked from other browsers (e.g. multiple stylesheets). The cool thing is, no matter what page gets served, they're all standards compliant.


Which Web Standard..?

Post 32

Ion the Naysayer

Whups. http://society2x03.dhs.org/ without the comma.


Which Web Standard..?

Post 33

DoctorMO (Keeper of the Computer, Guru, Community Artist)

multipull style sheets, I've been using that with Netscape, Mozilla and IE 5.0. with the tag

It's generated isn't it,

-- DoctorMO --


Which Web Standard..?

Post 34

Ion the Naysayer

Actually that site doesn't use browser detection, it's the W3C's stylesheet that's doing browser detection.

I chose to do multiple stylesheets that way (it's a perl script that uses a cookie to save the pref) because IE's support for sucks.

That is a generated page but the only things that change are the stylesheet name and the content of the "Messages from Bob" section which is parsed from an XML file (thus the rather noticable lag at that spot in the page - the PurePerl parser is slow and I can't get the Expat SAX module to install).


Which Web Standard..?

Post 35

HappyDude

Re: multiple Style sheets, I've done that on http://happy.sdf-eu.org/test/


Which Web Standard..?

Post 36

DoctorMO (Keeper of the Computer, Guru, Community Artist)

funny thing is, on http://www.infranet-partners.co.uk/cgi-bin/index.pm you will find a link rel headers. and I've tested it in IE 5.0/5.5 and 6.0, perhaps it's just 4.x?

-- DoctorMO --


Which Web Standard..?

Post 37

Ion the Naysayer

The way I understand it is that IE will merge the stylesheets into one if you have multiple link rel headers. Maybe that's only for old versions, I haven't tried it recently.


Which Web Standard..?

Post 38

DoctorMO (Keeper of the Computer, Guru, Community Artist)

Whats the problem with just one Style sheet structure?

I can't see the problem myself,apart from DOM refrancing I supose.

-- DoctorMO --


Which Web Standard..?

Post 39

Ion the Naysayer

Alternate stylesheets are possible using Mozilla (but not with IE). In Mozilla you can switch from stylesheet to stylesheet dynamically if the site author has put it together properly. If they retooled H2G2 to use stylesheets you could switch between alabaster, goo, and Brunel by selecting the right stylesheet from the View menu. IE makes a horrid mess of everything if you send it "conflicting" stylesheets.


Which Web Standard..?

Post 40

DoctorMO (Keeper of the Computer, Guru, Community Artist)

Ah I see, I use the className mainly.

You might beable to help me atualy, in Konqueror, when I change a className the visual aspects don't change untill I change somthing else, this happens all the time.

-- DoctorMO --


Key: Complain about this post

Write an Entry

"The Hitchhiker's Guide to the Galaxy is a wholly remarkable book. It has been compiled and recompiled many times and under many different editorships. It contains contributions from countless numbers of travellers and researchers."

Write an entry
Read more