¸ðÁú¶ó ÄõÅ©¹æ½Ä
Mozilla's quirks mode
¼Ò°³
À¥»ó¿¡ Á¸ÀçÇÏ´Â ³»¿ëÀº Ç¥ÁØÀ» µû¸£Áö ¾Ê°íÀְųª Ç¥ÁØÀ» µû¸£´Â ºê¶ó¿ìÀú¿¡¼ ÀǵµÇÑ ´ë·Î ³ªÅ¸³ªÁö ¾Ê±â ¶§¹®¿¡, ¸ðÁú¶ó´Â ÀÌÀüÀÇ È£È¯°¡´ÉÇÑ ¹æ½ÄÀ¸·Î ±×¸®°í Ç¥ÁØ¿¡ µû¶ó¼ ó¸®ÇÕ´Ï´Ù.
Because existing content on the web is not standards-compliant or would appear in unintended ways on a standards-compliant browser, Mozilla handles some content in a backwards compatible way and some content according to standards.
·¹À̾ƿô¿£ÁøÀÌ »ç¿ëÇÏ´Â ¹æ½ÄÀº ¼¼°¡ÁöÀÔ´Ï´Ù. ÄõÅ©¹æ½Ä, ÁØ(ñÞ)Ç¥Áعæ½Ä, ±×¸®°í Àü(îï)Ç¥Áعæ½Ä. ÄõÅ©¹æ½Ä¿¡¼, ·¹À̾ƿô¿£ÁøÀº ³×ºñ°ÔÀÌŸ4¿Í À©µµ¿ìÁî MSIEÀÇ ºñÇ¥ÁØÃ³¸®¸¦ ¸ð¹æÇÏ¿© À¥»óÀÇ ÇöÁ¸ÇÏ´Â ³»¿ëÀ» ±ú¶ß¸®Áö¾Êµµ·Ï ÇÕ´Ï´Ù. Àü(îï)Ç¥Áعæ½Ä¿¡¼´Â HTML¿Í CSS »ç¾ç¿¡¼ ±â¼úÇÑ Ã³¸®¸¦ ¸»ÇÕ´Ï´Ù. ÁØÇ¥Áعæ½ÄÀº ÄõÅ©¹æ½ÄÀÌ Ã³¸®ÇÏ´Â °ÍÀÇ ¾Æ¹« ÀûÀº ºÎºÐ¿¡ ºÒ°úÇϱ⠶§¹®¿¡ ÁØÇ¥Áعæ½ÄÀÇ ¹®¼Çü½Ä(DOCTYPES)¸¦ »ç¿ëÇÏ´Â À¥»óÀÇ ½ÇÁ¦ ÆäÀÌÁö¸¦ ±úµå¸®°Ô µË´Ï´Ù.
There are three modes used by the layout engine: quirks mode,
almost standards mode, and full standards mode. In Quirks
mode, layout emulates nonstandard behavior in Navigator 4 and
MSIE for Windows that is required not to break existing content on
the Web. In full standards mode, the behavior is
(hopefully) the behavior described by the HTML and CSS
specifications. In almost standards mode, there are only
a very small number of quirks implemented: those that break real
pages on the web that use the DOCTYPEs that trigger
almost standards mode.
¸ðÁú¶ó´Â »ç¿ëÇÒ ¹æ½ÄÀ» ¾î¶»°Ô °áÁ¤Çϴ°¡¿ä?
How does Mozilla determine which mode to use?
text/html·Î Àü¼ÛµÇ´Â ¹®¼ÀÇ °æ¿ì, ¸ðÁú¶ó´Â ÄõÅ©¸ðµå ¶Ç´Â Ç¥Áعæ½ÄÀ¸·Î ó¸®ÇؾßÇÒ Áö¸¦ °áÁ¤ÇØ¾ß ÇÕ´Ï´Ù. (text/xml ¶Ç´Â ´Ù¸¥ XML ¶Ç´Â XTHML MIME Çü½ÄÀ¸·Î Àü¼ÛµÇ´Â ³»¿ëÀº ¾ö°ÝÇÑ ¹æ½ÄÀ¸·Î Ç×»ó 󸮵˴ϴÙ.) ÇöÀç ¸ðÁú¶ó´Â DOCTYPE ½º´ÏÇÎÀ» ÅëÇØ¼ ÀÌ ÀÛ¾÷À» ÇÕ´Ï´Ù. Áï, ¸ðµç °ÍÀÌ Ç¥ÁØÃ³¸®µÇ¾ú´Ù¸é ¿Ã¹Ù¸£°Ô ÀÛµ¿ÇÒ ¼ö ÀÖ´Â ÃÖ±Ù¿¡ ÀÛ¼ºµÈ ÆäÀÌÁö¶ó´Â °ÍÀ» DOCTYPE ¼±¾ð (DTD)¿¡¼ ¾Ë¾Æ³À´Ï´Ù. DOCTYPE½º´ÏÇÎÀÌ ·¹À̾ƿô¹æ½ÄÀ» °áÁ¤Çϱâ À§ÇØ ¾î¶»°Ô »ç¿ëµÇ´Â Áö »ó¼¼ÇÑ ¼³¸íÀ» ÂüÁ¶Çϼ¼¿ä.
For documents sent as text/html, Mozilla must decide
whether to handle them in quirks mode or standards mode. (Content
sent as text/xml or other XML or XHTML MIME types is
always handled in strict mode.) Currently Mozilla does this through
DOCTYPE sniffing. That is, it uses the DOCTYPE declaration (DTD) as
a hint as to whether the page is a recently written web page that
can be expected to behave properly when all standard behavior is
used. See the detailed description of
how DOCTYPE sniffing is used to determine the layout mode.
DTP°¡ ÁÖ·Î ´Ù¸¥ ÀÌÀ¯ ¶§¹®¿¡ »ç¿ëÇϰí Àֱ⠶§¹®¿¡, ÇØ´ç ÆäÀÌÁö¿¡ DTD¸¦ º¯°æÇÏÁö ¾Ê°í ·¹À̾ƿô ¹æ½ÄÀ» ¼³Á¤ ¶Ç´Â ¾Ë·ÁÁÙ ¼ö ÀÖ´Â ¹æ¹ý¿¡ ´ëÇØ ¹®Àǰ¡ ÀÖ¾ú½À´Ï´Ù. Áö±Ý±îÁö´Â ±×·± ¹æ½ÄµéÀÌ ¿ÏÀüÇÏÁö ¸øÇßÁö¸¸, Á¦¾ÈÇÒ¸¸ÇÑ °ÍÀ̶ó¸é HTTP Çì´õÀε¥, ¹®¼ÀÇ ¸Ó¸®¸»¿¡¼ META ¿ä¼Ò¸¦ »ç¿ëÇÑ´Ù¸é °¡´ÉÇÒ ¼öµµ ÀÖÀ» °ÍÀÔ´Ï´Ù.
There have been requests for authors to be able to set (or suggest) the layout mode without changing the DTD of the page, since the DTD exists primarily for other reasons. So far no such method has been implemented, but the leading proposal is an HTTP header that would also be accessible through a META element in the head of the document.
¹æ½Ä »çÀÌÀÇ Â÷ÀÌ´Â ¹«¾ùÀΰ¡¿ä?
What are the differences between the modes?
¹æ½Ä »çÀÌÀÇ Â÷ÀÌ¿¡ ´ëÇØ¼´Â ÄõÅ© ¸ñ·ÏÀ» Âü°íÇϼ¼¿ä
See the list of quirks for the differences between the modes.
