Forum Moderators: not2easy

Message Too Old, No Replies

Is the "be nice to Opera 5" rule really necessary?

         

Esp68

1:39 pm on Sep 18, 2004 (gmt 0)

10+ Year Member



I've been using Tantek's box model hack for a while now and I've always included the now famous "be nice to Opera 5" rule immediatly following Tantek's hack. From what I thought, the rule served two things :

a) To serve the right values to User Agents who have the same parsing bug as IE5.x/Windows but get the box model right.

b) To help User Agents who have the parsing bug (like IE5.x/Windows) catch up since they tend to ignore the rule immediatly following Tantek's hack.

While the second reason is fully valid, I am questionning the first one. Since the rule is called "be nice to Opera 5", I was assuming that Opera 5.x/Windows gets the box model right (which it does) but suffered from the same parsing bug as IE5.x/Windows (which it DOESN'T)!

Are there any browsers out there who really get the box model right, support CSS2 selectors and suffer from the same parsing bug as IE5.x/Windows?

encyclo

1:56 pm on Sep 18, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to WebmasterWorld [webmasterworld.com], Esp68.

As you said, the first reason is no longer required as Opera 5 is long dead and gone, but the second reason is enough to continue using the extra rule.

If you want, you can also use a blank rule immediately following instead, which brings to older browsers on track. Something like

[b][blue]b {}[/blue][/b]
would do it.

Esp68

1:01 pm on Sep 19, 2004 (gmt 0)

10+ Year Member



Thank you for answering my post! But what I was trying to say is that on Tantek's website [tantek.com], he says that Opera 5 suffers from the same parsing bug as IE5x/Windows. But if you try the hack in Opera 5, you'll see that in fact, Opera 5 does NOT suffer from the parsing bug illustrated by Tantek.

So basically, if we just apply an empty rule (like .empty {}) after Tantek's hack instead of the "be nice to Opera 5" rule, Opera 5 will still get the box model right.

So my question is : are there browsers out there that DO suffer from the same parsing bug as IE5x/Windows, DO get the box model right, and DO understand CSS2 selectors?

JAB Creations

11:08 pm on Sep 19, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Opera has been a junk browser until version 7 which has seen massive changes in how it renders code, and I mean good massive changes. Their GUI could stand vast improvement but thats just my opinion.

For Opera, I only design for version 7.