Loading ...
Sorry, an error occurred while loading the content.
 

Re: [ydn-javascript] Strict DOCTYPE recommendation for YUI, why?

Expand Messages
  • Matt Sweeney
    Hi Fred, The grids.css and fonts.css files are designed to be mode agnostic. You should see no diffs in the rendering between modes. We recommend standards
    Message 1 of 4 , Apr 26, 2007
      Hi Fred,

      The grids.css and fonts.css files are designed to be mode agnostic. You
      should see no diffs in the rendering between modes.

      We recommend "standards" mode as a best practice, as it gets us closer
      to a level playing field across browsers. However, YUI is designed with
      retrofitting existing pages in mind, and we understand that switching to
      standards mode is a big job in some cases.

      If you find issues with "quirks" mode versions of components, please
      file as bugs.

      Matt


      Fred Janon wrote:
      > Yes it helps, thanks Dave.
      >
      > The issue is mainly for existing pages that get spruced up with YUI
      > and already have a non strict DOCTYPE. There is a non negligable risk
      > in switching DOCTYPE on these pages and we need strong arguments to
      > support that kind of changes.
      >
      > I think it would help a lot if there was two screen shots on the Grids
      > page that demonstrate the difference in look between a page in strict
      > and non strict mode.
      >
      > Thanks
      >
      > Fred
      >
      > On 4/26/07, *dav.glass@... <mailto:dav.glass@...>*
      > <dav.glass@... <mailto:dav.glass@...>> wrote:
      >
      > Fred --
      >
      > By putting the browser in standards mode we gain access to things
      > that are not reliable in quirks mode.. (Box model issues..)
      >
      > Most of the YUI tools "should" work in quirks mode, however they
      > may look like crap.
      >
      > There are other various things that may not work very well in
      > quirks mode, such as:
      > automatic positioning
      > container sizes
      > padding
      > etc.
      >
      > It might be worth asking why use quirks mode? Are you getting any
      > benefit to not using standards mode?
      >
      > In my opinion, you should always force the browser into standards
      > mode, things just play nicer..
      >
      > Hope that info helps..
      >
      > Dav
      >
      > Dav Glass
      > dav.glass@... <mailto:dav.glass@...>
      > blog.davglass.com <http://blog.davglass.com>
      >
      >
      > + Windows: n. - The most successful computer virus, ever. +
      > + A computer without a Microsoft operating system is like a dog
      > without bricks tied to its head +
      > + A Microsoft Certified Systems Engineer is to computing what a
      > McDonalds Certified Food Specialist is to fine cuisine +
      >
      >
      > ----- Original Message ----
      > From: Fred Janon <fjanon@... <mailto:fjanon@...>>
      > To: ydn-javascript@yahoogroups.com
      > <mailto:ydn-javascript@yahoogroups.com>
      > Sent: Wednesday, April 25, 2007 5:27:19 PM
      > Subject: [ydn-javascript] Strict DOCTYPE recommendation for YUI, why?
      >
      > Hi,
      >
      > I am trying to understand the impact of not using a strict
      > mode DOCTYPE when using YUI. I saw the recommendation on the Grids
      > CSS page http://developer.yahoo.com/yui/grids/
      > <http://developer.yahoo.com/yui/grids/> but there is no
      > explanation of the consequences if we are not using the strict mode.
      >
      > I found this article about IE6 and I think that might be one of
      > the main issues of not using a strict mode, but would someone
      > explain what impact it would have on using YUI in quirks mode?
      >
      > http://msdn2.microsoft.com/en-us/library/bb250395.aspx#cssenhancements_topic2
      > <http://msdn2.microsoft.com/en-us/library/bb250395.aspx#cssenhancements_topic2>
      >
      > I think that also the display property with the inline and
      > inline-block values in IE behaves differently in strict and quirks
      > mode...
      >
      > Thanks
      >
      > Fred
      >
      >
      >
      >
      >
      >
    Your message has been successfully submitted and would be delivered to recipients shortly.