Click to See Complete Forum and Search --> : Firefox 3 renders in "Quirk" mode


SpenceQ
02-05-2009, 01:30 PM
In spite of my Doctype set to conform to "Standard" mode, FF ignores it
and renders in quirk mode. My frames can be enlarged (magnifying glass mouse icon) to the size I would like them to be.

code is:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">

<html>
<head>

<title>AAAAAAAAAAA</title>

</head>

<FRAMESET ROWS="186,563,85,*" border=0 frameborder="0">
<FRAMESET COLS="20%,753,*" border=0 frameborder="0">
<FRAME SRC="wings.html" NAME="lf1" NORESIZE SCROLLING="NO">
<FRAME SRC="beanTP.jpg" NAME="LOGO" NORESIZE SCROLLING="NO" >
</FRAMESET>
<FRAMESET COLS="20%,174,579,*">
<FRAME SRC="wings2.html" NAME="lf2" NORESIZE SCROLLING="NO">
<FRAME SRC="beanLF.jpg" NAME="Legend" NORESIZE SCROLLING="NO">
<FRAME SRC="beanRT.jpg" NAME="Info" NORESIZE SCROLLING="NO">
</FRAMESET>
<FRAMESET COLS="20%,753,*">
<FRAME SRC="wings3.html" NAME="lf3" NORESIZE SCROLLING="NO">
<FRAME SRC="beanBT.jpg" NAME="Msg" NORESIZE SCROLLING="NO">
</FRAMESET>
</FRAMESET>


<NOFRAMES>
<h2 align=center>"NOTE: This site uses frames, but apparently your browser."</h2>
</NOFRAMES>


</html>

When the above is run and rendered on FF3 the frames are smaller than I designed, I clicked properties of one frame and the results are:

Mozzila Frame Info - http://...................etc

AA.jpg (jpeg image, 169x564 pixels) Scaled (70%)
address: localhost/aa.jpg
type: image/jpeg
render mode: quirks mode
encoding: iso-8859-1
size: nnnnnn
refering url: (same as above)
modified: (date)

Mozzila gives this information about fixing the "quirk" problem. They state it can be forced by any of the following:

Full Standards Mode

The following trigger full standards mode:

* Any document sent with an XML MIME type such as text/xml, application/xml, or application/xhtml+xml (since sniffing only occurs for documents sent as text/html).
* Any "DOCTYPE HTML SYSTEM" as opposed to "DOCTYPE HTML PUBLIC", except for the IBM doctype noted below
* A DOCTYPE declaration without a DTD, i.e., <!DOCTYPE HTML>.
* A DOCTYPE declaration with an internal subset.
* Any unknown doctype, which should include the following (technically known) doctypes:
o The public identifier "-//W3C//DTD HTML 4.01//EN".
o The public identifier "-//W3C//DTD HTML 4.0//EN".
o The public identifier "-//W3C//DTD XHTML 1.0 Strict//EN".
o The public identifier "ISO/IEC 15445:2000//DTD HyperText Markup Language//EN".
o The public identifier "ISO/IEC 15445:2000//DTD HTML//EN".
o The public identifier "-//IETF//DTD HTML i18n//EN".

So the above doesn't work since my doctype is within the permissible options.

BTW: The above code renders in standard mode in IE7 with no problems.

Any help will be appreciated.

Spence

Charles
02-05-2009, 02:30 PM
Run that through The Validator (http://validator.w3.org/) and you'll see what's going on.

And the NOFRAME element isn't for a snarky message. You're suppposed tro provide alternative content, either the no-frame version or a link to the no-frame version.

felgall
02-05-2009, 07:58 PM
You should be using the frames doctype if you use frames and not the strict doctype. The strict doctype does not allow any sort of frames in the page. A strict doctype also doesn't allow align=center.

You can't just pick a doctype to add to your content, the doctype defines the language your page is supposedly written in and 99% of that page isn't valid in HTML 4 strict.

Additionally if you do use frames it will be the doctypes on the pages displaying in each of the frames that determine how each of those pages is rendered within its frame.