Opera 7 Doctype switching

January 14, 2003

I've been playing around with the Beta 2 release of Opera 7 this past week.

I'd noticed that a few pages using font-size keywords now map the keyword values as the more intuitive medium=default size way instead of previous small=default size.

I've come across some general rumblings about this release introducing Doctype-switching, but haven't come across any listing of the specific doctypes that cause the browser to go into "quirks" mode, so I decided to look into this myself.

The table below is the result of a quick and dirty test by creating a simple page with <span style="font-size:meduim;">test</span> and seeing wihcih DOCTYPEs caused the Opera to render "medium" text as the "quirky" larger than default. As you can see that vast majority of DOCTYPEs will put Opera into its new "standards" mode.

No DOCTYPE Quirks
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"> Standards
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> Quirks
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> Standards
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"> Standards
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> Quirks
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> Standards
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Strict //EN"> Standards
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> Standards
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Strict //EN" "http://www.w3.org/TR/html4/strict.dtd"> Standards
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> Standards
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> Standards
Posted by Andrew at January 14, 2003 07:10 PM
Comments

Opera has recently released they're fist update to Opera 7.

Opera 7.01 is out

Posted by: Andrew on February 7, 2003 09:23 PM

Cloaking Software - Doorway Pages

Posted by: Cloaking Script on September 8, 2004 06:46 PM
Post a comment