Page display bug in Opera

The forum to report every bug you find or tell us what you'd like to find in UVa OJ

Moderator: Board moderators

Locked
CrazyTerabyte
New poster
Posts: 25
Joined: Fri Jul 16, 2004 3:19 am
Contact:

Page display bug in Opera

Post by CrazyTerabyte »

The page is displayed very bad in Opera. I know the reason: the page does not have a valid doctype. The first line of homepage source says:

Code: Select all

<!DOCTYPE HTML SYSTEM>
But this is an invalid doctype. Just change this line to:

Code: Select all

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
And Opera browser will display it much better.

The reason is that an invalid doctype will trigger "Quirks mode" in Opera, so it will try to "emulate" other browsers bugs. The complete description of how it works is decribed at Opera documentation.
CrazyTerabyte
New poster
Posts: 25
Joined: Fri Jul 16, 2004 3:19 am
Contact:

Post by CrazyTerabyte »

Interesting how the status page has a very similar "layout", but is not displayed bad, as homepage.
[edit: investigation done!]
Well, with no doctype, then the page is displayed correctly. With HTML Transitional doctype (a valid one), the page is displayed almost correctly. However with an invalid doctype (such as homepage), then the page is displayed very bad.

With my tests, the "Quirks mode" is triggered when the page has no doctype, and this way the page looks good.

Anyway, removing the (invalid) doctype is the easiest way to fix this.

Thanks.
Carlos
System administrator
Posts: 1286
Joined: Sat Oct 13, 2001 2:00 am
Location: Valladolid, Spain
Contact:

Post by Carlos »

I've changed it, pleas tell me whether the problem is solved or not.
DON'T PM ME --> For any doubt, suggestion or error reporting, please use the "Contact us" form in the web.
CrazyTerabyte
New poster
Posts: 25
Joined: Fri Jul 16, 2004 3:19 am
Contact:

Post by CrazyTerabyte »

Oh, much better! Really thanks!

Only one more thing: you forgot to set background color to white, on homepage. When people (like me) modifies the default bgcolor of their browser, page looks just a bit uglier.

Anyway, thanks for photo resize, and for fixing the doctype issue. Page is much better now.
Locked

Return to “Bugs and suggestions”