¸ðÁú¶ó ÄõÅ© ¸ðµå 󸮹æ½Ä
Mozilla Quirks Mode Behavior
´ÙÀ½Àº ¸ðÁú¶ó Ç¥Áعæ½Ä°ú ÄõÅ©¸ðµå 󸮹æ½Ä »çÀÌ¿¡ Á¸ÀçÇÏ´Â Â÷À̸¦ ´ë·«ÀûÀ¸·Î ¼Ò°³ÇÑ °ÍÀÔ´Ï´Ù. ÀÌ ¸ñ·ÏÀº 2001³â 7¿ùÃʸ¦ ±âÁØÀ¸·Î ÇÑ °ÍÀÔ´Ï´Ù. ±× ½ÃÁ¡ÀÌÈÄ °¡Àå Áß¿äÇÑ º¯°æÀº Æû Á¦¾î°ü·Ã ÄõÅ© ³»¿ëÀÌ ¸¹ÀÌ Á¦°ÅµÇ¾ú½À´Ï´Ù. ¶Ç´Ù¸¥ ÁÖ¸ñµÇ´Â º¯°æÀº Ç¥Áعæ½Ä¿¡¼ text/css ÀÌ¿ÜÀÇ MIME Çü½ÄÀ» °¡Áø CSS ½ºÅ¸ÀÏ½ÃÆ®¸¦ Á¦¿ÜÇÑ °ÍÀÔ´Ï´Ù.
The following is a rough list of the differences that exist
between Mozilla's standards mode and quirks mode behavior. This
list is current as of early June 2001. Since that time the most
significant change has been that many of the form control-related
quirks have been removed. Another often-noticed change is that, in
standards mode, we reject CSS stylesheets that have a MIME type
other than text/css.
-
Àâ´ÙÇÑ ³»¿ë & ½ºÅ¸ÀÏ
- quirk.css¿¡ ÀÖ´Â ¸ðµç ½ºÅ¸ÀÏ ±ÔÄ¢Àº ÀûÇÕÇÕ´Ï´Ù.
- ±Ç°íÇÏ´Â text/css¶ó´Â mime Çü½ÄÀÌ ÀÖ´Â ¹®¼¿¡
¿¬°áµÈ ½ºÅ¸ÀÏ½ÃÆ®´Â ¼¹ö°¡ text/css ÀÌ¿ÜÀÇ
Content-Type¸Ó¸´´Ü Á¤º¸¸¦ º¸³»´õ¶óµµ CSS·Î ó¸®µÇ°Ô µË´Ï´Ù. - CSS ÇØ¼®±â´Â #À¸·Î ½ÃÀÛÇÏÁö ¾Ê´Â »ö»óÀ» ¹Þ¾ÆµéÀÔ´Ï´Ù.
- CSS ÇØ¼®±â´Â ´ÜÀ§°¡ ¾ø´Â ¼ýÀÚ¸¦ px·Î ÇØ¼®ÇÕ´Ï´Ù.(´Ü font-size´Â Nav4°¡ ó¸®ÇÏ´Â °ÍÀ̱⠶§¹®¿¡, ±×¸®°í line-height¿Í ºÐ¸íÇÑ ÀǹÌÀÖ´Â ´Ù¸¥ ¼Ó¼ºÀÌ ÀÖ´Â °æ¿ì´Â Á¦¿ÜµË´Ï´Ù)
- HTML »ö»óÀº ´Ù¸£°Ô ÇØ¼®µË´Ï´Ù(#Àº ÇÊ¿äÇÏÁö ¾ÊÀ¸¸ç, ºüÁø ¼ýÀÚ°¡ ÀÌÀ¯¾øÀÌ Ã¤¿öÁý´Ï´Ù)
- background ¼Ó¼ºÀÇ °ø¹é ¹®ÀÚ¿Àº ¹è°æ URLÀ» ÄõÅ©¸ðµå¿¡¼¸¸ °ø¹éÀ¸·Î ¼³Á¤ÇÕ´Ï´Ù.
- ½Ã½ºÅÛ ±Û²ÃÀº ³×ºñ°ÔÀÌÅÍ ÄõÅ©¸ðµå¿¡¼ ´Ù¸£°Ô ÀÛµ¿ÇÕ´Ï´Ù(´Ù¸£°Ô ÀÛµ¿Çϱ⠶§¹®¿¡ ½Ã½ºÅÛ ±Û²ÃÀ» »ç¿ëÇÏÁö ¾Ê¾Æ¾ß ÇÕ´Ï´Ù.)
- HTML(1-7)°ú CSS(xx-small-xx-large)ÀÇ ±Û²Ã Å©±â´Â ´Ù¼Ò ´Ù¸£°Ô °è»êµË´Ï´Ù. (¹ö±× 18136À» ÂüÁ¶Çϼ¼¿ä)
- ¸ñ·Ï Ç׸ñÁ¡Àº ÄõÅ©¸ðµå¿¡ ÀÖ´Â ¸ñ·ÏÀÇ ±Û²Ã Å©±â¸¦ »ó¼ÓÇÏÁö ¾Ê½À´Ï´Ù.
- ¼±ÅÃÀÚ¿¡ ű׸í, id, ¶Ç´Â ¼Ó¼ºÀÌ ¾ø´Ù¸é,
:hover¶ó´Â ÁØÅ¬·¡½º´Â ¸µÅ©, À̹ÌÁö, ±×¸®°í ÆûÁ¦¾î¿¡¸¸ Àû¿ëµË´Ï´Ù.
¡¡
- All of the style rules in quirk.css apply.
- Stylesheets linked in the document with an advisory mime type of
text/csswill still be treated as CSS even if the server gives aContent-Typeheader other thantext/css. - The CSS parser accepts colors not beginning with
#. - The CSS parser interprets unitless numbers as
px(except forfont-sizebecause that was what Nav4 did, and except forline-heightand any other properties where they have distinct meaning). - HTML colors are parsed differently (
#is not required, and missing digits are filled int differently) - An empty string for the
backgroundattribute sets the background URL to empty only in quirks mode. - System fonts work differently in navquirks mode (shouldn't the form controls that use them be the ones working differently instead?).
- HTML (1-7) and CSS (
xx-small-xx-large) font sizes are calculated slightly differently (see bug 18136). - List bullets do not inherit the font size of the list in quirks mode.
- The
:hoverpseudoclass will only be applied to links, images, and form controls, unless the selector includes tag names, ids, or attributes.
¡¡
-
±¸¿ª°ú ÀζóÀÎ ·¹À̾ƿô
- [ÀÌ ÄõÅ©´Â ÁØÇ¥Áعæ½Ä¿¡ Æ÷ÇԵǾîÀÖ½À´Ï´Ù] ¹ö±× 5821°ú ¹ö±× 24185À» ó¸®Çϱâ À§ÇØ ÁÙ³ôÀÌ(ÁÙ°£°ÝÀÌ ¾Æ´Ô) °è»êÀº ´Ù¸¨´Ï´Ù. (ÀϺΠ´Ù¸¥ ¹®Á¦´Â ¹ö±× 22274¿¡ ¼³¸íµÇ¾îÀÖ½À´Ï´Ù)
- Nav4¿¡¼ ÇÏ´ø °ÍÀ¸·Î, ºÎ¸ð¿ä¼Ò°¡ °íÁ¤µÈ ³ôÀ̸¦ °®Áö¾ÊÀ» ¶§ CSS°¡ ºñÀ² ³ôÀÌ´Â 'auto'ó·³ ó¸®Ç϶ó°í ÇÏ´õ¶óµµ À̹ÌÁö, Å×À̺í, °´Ã¼, ±×¸®°í ¾ÖÇø´ÀÇ ºñÀ²(%) ³ôÀ̸¦ ó¸®ÇÒ ¼ö ÀÖ°Ô ÇÏ´Â ÄõÅ©°¡ ¸¹ÀÌ ÀÖ½À´Ï´Ù. ¾î¶² ³»¿ëÀÎ Áö º¸°í ¹ö±× 41656°ú Áߺ¹³»¿ëµµ º¸¼¼¿ä. À̵é ÄõÅ© ÀϺδ ´Ù¸¥ È¿°ú¸¦ ¸¸µé±âµµ ÇÕ´Ï´Ù. (¹ö±× 54119¸¦ Âü°íÇϼ¼¿ä)
- HR ¿ä¼Ò´Â ÄõÅ©¿Í ¾ö°Ý¸ðµå¿¡ ´Ù¸£°Ô Ãë±ÞµÇ¸ç ¸»ÇÒ °Í¾øÀÌ µÑ´Ù Ʋ¸° °ÍÀÔ´Ï´Ù.
¡¡
- [This quirk is present in almost standards mode.] Line height (not
line-height) calculations are different to fix bug 5821 and bug 24186 (some other issues are described in bug 22274). - There are a bunch of quirks to get percentage heights on images, tables, objects, and applets (etc.?) to "work" (the way they did in Nav4), even though CSS says that percentage heights should behave like 'auto' heights when the parent element doesn't have a fixed height. See a description. See also bug 41656 and its duplicates. Some of these quirks may cause other effects (see bug 54119).
- The
HRelement is treated differently in quirks and strict mode (and arguably wrong in both).
¡¡
-
Å×À̺í
- Å×ÀÌºí ¹è°æ»ö»óÀº ´Ù¸£°Ô ÀÛµ¿ÇÕ´Ï´Ù.(¹ö±× 4510À» Âü°íÇϼ¼¿ä). ÄõÅ©¹æ½ÄÀ¸·Î ó¸®ÇØ¾ß ÇÏ´Â Áö´Â ºÐ¸íÇÏÁö ¾Ê½À´Ï´Ù.
- ÄõÅ©¹æ½Ä¿¡¼
absmiddle(ºÎÁ¤È®ÇÏ°Ô Ã³¸®ÇÏ´Â µí)¿Ímiddle(¸¶Âù°¡Áö·Î ºÎÁ¤È®ÇÏ°Ô Ã³¸®ÇÏ´Â µí)Àº Å×ÀÌºí ¼¿¿¡¼ align °ªÀ¸·Î 󸮵Ǹç, ±×¸®°íabsmiddle,abscenter, ±×¸®°ímiddleÀº Å×ÀÌºí¿¡¼ Áö¿øµÇ¸ç À̰ÍÀº center¿Í °°Àº °ÍÀ¸·Î Ãë±ÞÇÕ´Ï´Ù. TD,TH,TR,THEAD,TBODY, ±×¸®°íTFOOT¿ä¼Ò´Â À̵鿡 Àû¿ëµÇ´Â ¹®¼ ¹è°æ°ú »ö»óÀ» °¡Áö°íÀÖ½À´Ï´Ù.(¹ö±× 70831 ¶ÇÇÑ Âü°íÇϼ¼¿ä)empty-cell¼Ó¼ºÀº ÄõÅ©¹æ½Ä¿¡¼ hide¸¦ ±âº»À¸·Î ÇÏÁö¸¸ CSS2 Ç¥¿¡ µû¸£¸é ¾ö°Ý¹æ½Ä¿¡¼´Â show°¡ ±âº»ÀÔ´Ï´Ù.- ÄõÅ©¹æ½Ä¿¡¼ À¯µ¿ Å×À̺íÀÌ ´Ù¸¥ À¯µ¿ Å×ÀÌºí¿¡ µé¾î¸ÂÁö¾ÊÀ¸¸é ´ÙÀ½ "Çà"À¸·Î À̵¿ÇÏÁö ¸øÇϸç, ÆäÀÌÁö¸¦ ±×³É ³ÐÇôÁֱ⸸ ÇÕ´Ï´Ù. (¹ö±× 43086À» Âü°íÇϼ¼¿ä)
- ÄõÅ©¹æ½Ä¿¡¼ colspan="0"°ú rowspan="0"À¸·Î HTML4¿¡¼ ¼³¸íµÈ °Íó·³ ó¸®µÇÁö ¾Ê½À´Ï´Ù.
- hspace¿Í vspace´Â ÄõÅ©¸ðµå¿¡¼¸¸ TABLE¿¡¼ Áö¿øµË´Ï´Ù.
- ÄõÅ©¹æ½Ä¿¡¼ Å×À̺íÀÌ inset ¶Ç´Â outsetÀ̶ó´Â border ½ºÅ¸ÀÏÀ» °¡Áú °æ¿ì, border »ö»óÀº Å×À̺íÀÇ ¹è°æ»ö»ó ¶Ç´Â °¡Àå °¡±îÀÌ¿¡ ÀÖ´Â ºñ-Åõ¸í ¹è°æÀ» µû¸¨´Ï´Ù.
- ÄõÅ©¹æ½Ä¿¡¼ border¸¦ °¡Áø Å×ÀÌºí ¼¿Àº ÃÖ¼ÒÅ©±â 1Çȼ¿À» °¡Áý´Ï´Ù.
- ÄõÅ©¹æ½Ä¿¡¼´Â ±âº»ÀûÀÎ Å×ÀÌºí ·¹À̾ƿô Àü·«Àº paddingÀ» ¹«½ÃÇÕ´Ï´Ù.
- ±âº»ÀûÀÎ Å×ÀÌºí ·¹À̾ƿô Àü·«Àº ³ÐÀ̸¦ ¹æ½Ä¿¡ ÀÖ¾î¼ ´Ù¸£°Ô ó¸®ÇÕ´Ï´Ù.
¡¡
- Table background colors work differently (see bug bug 4510) It is not clear that this quirk is needed.
- In quirks mode
absmiddle(handled incorrectly?) andmiddle(perhaps incorrectly as well?) are accepted as values ofalignon table cells, andabsmiddle,abscenter, andmiddleare supported on tables (treated the same ascenter). TD,TH,TR,THEAD,TBODY, andTFOOTelements have the document background (and color?) applied to them (when the document background is specified in certain ways?) (see also bug 70831 ).- The
empty-cellsproperty defaults tohidein quirks mode butshow(according to CSS2 errata) in strict mode (see bug 33244) (though the correct fix would be to specify it on the HTMLTABLEelement inquirk.css). - In quirks mode floated tables never move to the next "line" if they don't fit next to other floats, they just keep widening the page (see bug 43086).
- In quirks mode
colspan="0"androwspan="0"are intentionally not handled as described in HTML4. hspaceandvspaceare supported onTABLEonly in quirks mode.- In quirks mode, when tables have a border style of
insetoroutset, the border color is based on the background color of the table or of the nearest ancestor with non-transparent background. - In quirks mode table cells with a border have a minimum width of one pixel.
- The basic table layout strategy ignores padding (on what) in quirks mode.
- The basic table layout strategy handles widths differently in some way.
¡¡
-
Æû
- ¹öư ÀԷ³»¿ëÀº ±× ũ۸¦ ´Ù¸£°Ô °è»êÇÕ´Ï´Ù.
- Ç¥Áعæ½Ä¿¡¼ BUTTON ¿ä¼Ò´Â type ¼Ó¼ºÀÌ ºüÁø °æ¿ì¿¡¸¸ Àü¼ÛÇÒ ¼ö ÀÖ½À´Ï´Ù.
- ÅØ½º ÀԷ³»¿ë°ú ÅØ½ºÆ®¸¦ Æ÷ÇÔÇÏ´Â ´Ù¸¥ ÆûÁ¦¾î´Â ±× Å©±â¸¦ ´Ù¸£°Ô °è»êÇÕ´Ï´Ù. (¿ø·¡ ¼öÁ¤»çÇ׿¡ ´ëÇÑ ¼³¸í°ú Á¦¾È³»¿ëµµ bug X¸¦ Âü°íÇϼ¼¿ä)
- ¹öưÀÇ INPUT ¿ä¼Ò¿Í SELECT ¿ä¼ÒÀÇ ±Û²ÃÀº ´Ù¸£°Ô °è»êµË´Ï´Ù.
- ¶óµð¿À ±×·ì¿¡¼ ÇϳªÀÇ ¹öưÀÌ Ç×»ó ±âº»À¸·Î ¼±ÅõǴ HTMLÀÇ ¿ä±¸Á¶°ÇÀº ÄõÅ©¸ðµå¿¡¼ Àû¿ëµÇÁö¾Ê½À´Ï´Ù.
¡¡
- Button inputs calculate their size differently.
- In standard mode a
BUTTONelement (?) can submit only if it lacks atypeattribute. - Text inputs (and other form controls containing text???) calculate their size differently (see bug X for the description of the original fix and also bug X for suggested modifications)
- The fonts for button
INPUTelements andSELECTelements are computed differently. - The requirement of HTML that one button in a radio group is always selected (by default) is not enforced in quirks mode.
¡¡
-
ÇÁ·¹ÀÓ
- ÄõÅ©¹æ½Ä¿¡¼ FRAME »óÀÇ
marginwidth¿ÍmarginheightÀº BODY Àüü¿¡ ¿µÇâÀ» ÁÖ°Ô µË´Ï´Ù. - ÇÁ·¹ÀÓ Å©±â »ç¾ç¿¡¼ 0*Àº 1*·Î 󸮵˴ϴÙ.(¹ö±× 40383À» Âü°íÇϼ¼¿ä)
- ÇÁ·¹ÀÓ¿¡¼ scrolling ¼Ó¼ºÀº ´Ù¸£°Ô 󸮵˴ϴÙ.
¡¡
- In quirks mode
marginwidthandmarginheighton aFRAMEare propagated to the containedBODY. - In a frame size specification
0*is treated as1*(see bug 40383). - The
scrollingattribute onFRAMEis handled differently.
¡¡
- ÄõÅ©¹æ½Ä¿¡¼ FRAME »óÀÇ
-
HTML ÇØ¼®±â
- ÄõÅ©¹æ½Ä¿¡¼, HTML ÁÖ¼®Àº "--"À» ÁÖ¼®ÀÇ ½ÃÀÛ°ú ¸¶Áö¸· ºÎºÐÀÇ ±¸ºÐÀڷνá ó¸®ÇÏ´Â ´ë½Å¿¡ ±¸¹öÀüÀÇ ºê¶ó¿ìÀú¿Í ȣȯµÉ ¼ö ÀÖ´Â ¹æ½ÄÀ¸·Î ÇØ¼®ÇÕ´Ï´Ù.
- In quirks mode, we parse HTML comments in a way compatible with older browsers instead of treating "
--" as the comment start and end delimeter
