On Tue, 5 Jun 2001, Simon Fraser wrote:
> In article <[EMAIL PROTECTED]>,
>  Canasta <[EMAIL PROTECTED]> wrote:
> > What's the feasibility of building Mozilla minus quirks mode?
> > 
> > Just how big is the quirks mode code, anyway?
> 
> It's big. At a very uninformed guess, I'd say maybe 40% of
> the layout code is there to deal with quirks. It would
> be easy to turn off quirks mode at runtime, but less easy
> to build without it, I think. Try .layout for a better answer.

40% sounds very high to me.  It could vary a lot depending on how you
define a quirk.  Do you count only features for which there are two
separate code paths (in which case I'd guess it's only a percent or
two), or features that exist for backwards compatibility but are not
standardized (in which case I'd guess it could be more like 10% or 20%)?
(I don't think calling the global object |window| is required by any
standard.)  If you count DOM HTML (as opposed to DOM Core) as a quirk
(despite its standardization), then it would be much higher.  And while
we're there, what counts as "layout code"? :-)

-David

-- 
L. David Baron        <URL: http://www.people.fas.harvard.edu/~dbaron/ >
Mozilla Contributor                      <URL: http://www.mozilla.org/ >
Invited Expert, W3C CSS WG          <URL: http://www.w3.org/Style/CSS/ >

Reply via email to