The Good Life... a weblog about life, technology, and the Opera Web browser

Acid2 - The Containing Block

Our next Acid2 fix came in build 7587. The W3C HTML 4.01 spec. defines the rel attribute of the LINK element as a space-separated list of link types. In Opera, we treated the entire value of the rel attribute as one link type. Check this test case to see how your browser handles it.

Now, we specifically look for the stylesheet link type if a space-separated list is used. While this fixes the problem in the Acid2 test, it doesn't completely fix the bug. There are still cases that won't work in 8.0x where you might want a single LINK element to point to both start and prev, for instance.

Here's the updated rendering with this bug fixed (so much nicer):

Screenshot of the Acid2 test

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Note: Comments with a light blue background were made by the site owner.

Why the half measure?

I understand fixing half a bug if you need the "wrong" behavior for a backwards compatibility bug -- but I can't think what this would be supporting.

I also understand fixing half a bug if it is much easier or more efficient than doing things right -- but that doesn't seem likely in this case. (The most common case should be no spaces <==> no change.)

What am I missing?

-jJ

Mostly it was much easier to

Mostly it was much easier to half fix it than to fix it entirely. Plus, the less code we changed, the less likely something is to break.