|
Posted by Henri Sivonen on May 3, 2006, 5:38 pm
Please log in for more thread options
> Henri Sivonen wrote:
> > The DTD is irrelevant (it is not fetched). However, for text/html, the
> > doctype is relevant:
> > http://hsivonen.iki.fi/doctype/
>
> Not for IE6... "not exactly" for a better wording. This browser has
> four options for two states (backCompat and CSS1Compat):
Let me guess. You did not read the document referenced above.
> Option 4: Any text within <!.. > brackets as the first line in the
> document except Option 2
> compatMode -> CSS1Compat == W3C box model
Like <!DOCTYPE HTML PUBLIC "ISO/IEC 15445:1999//DTD HTML//EN"> perhaps?
;-)
> This way in XHTML agglomerate like
> <?xml version="1.0" encoding="iso-8859-1"?>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
> it sees only the last <> pair and goes by Option 4.
Are you sure?
> > > Most importantly DTD allows - so far - to switch IE into W3C
> > > box model (unless short HTML Transitional).
> >
> > And Firefox. And Opera. And Safari.
>
> No, because it's impossible. Firefox and others do not have IE box
> model one could switch on or off. They have only one box model -
> irrelevant of DTD.
Actually, earlier versions of Opera did have the IE box model in the
quirks mode. My point was that even though they don't have the exact IE
box model quirks, they do doctype sniffing nonetheless.
> > > WWW doesn't go by extensions or formal document signs, never did and
> > > never will. The only important part is Content-Type. It defines
> > > everything.
> >
> > Except, of course, when it doesn't.
>
> As if?
http://ln.hixie.ch/?start=1144794177&count=1
> > > > > And if anyone curious: the build in DTD of IE6 is
> > > > > <http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd> This is
> > > > > the
> > > > > only one it's aware of and the only one it uses.
> >
> > IE does not have built-in DTDs at all. The parsing is not DTD-based.
>
> Of course it does: otherwise how it would decide that tag to render and
> how, what attributes to use for rendering and what to disregard?
From hand-crafted C++ code and from CSS.
--
Henri Sivonen
hsivonen@iki.fi
http://hsivonen.iki.fi/
|