MDN may have intermittent access issues April 18 13:00 - April 19 01:00 UTC. See whistlepig.mozilla.org for all notifications.

mozilla

Revision 44733 of Mozilla's DOCTYPE sniffing

  • Revision slug: Mozilla's_DOCTYPE_sniffing
  • Revision title: Mozilla's DOCTYPE sniffing
  • Revision id: 44733
  • Created:
  • Creator: cesar_ortizg
  • Is current revision? No
  • Comment 350 words added, 312 words removed
Tags: 

Revision Content

Este documento describe cómo Mozilla utiliza la declaración DOCTYPE para determinar el modo estricto frente al modo peculiaridades. El código que hace esta determinación se encuentra actualmente en {{ Source("parser/htmlparser/src/nsParser.cpp#1184", "DetermineParseMode() in nsParser.cpp") }}. Ver {{ Bug("1312") }} y {{ Bug("55264") }} por parte de la historia de la determinación de modos. Ver {{ Bug("153032") }} para la creación de los modos casi estándares en torno a Mozilla 1.0. Los objetivos que llevaron a la elección de este comportamiento fueron los siguientes:

  • Casi todos los textos existentes o páginas HTML en la Web que necesitan estar en modo de peculiaridades que se muestren correctamente se debe mostrar el modo de uso de peculiaridades. (Casi todos, más que todo, para permitir que los siguientes puntos también).
  • Los autores que escriben las páginas web a las normas actuales deben ser capaces de activar el modo estricto.
  • Las páginas escritas con cualquier identificadores públicos en las declaraciones de DOCTYPE que aparecen en el futuro se debe mostrar con el modo estricto.

En otras palabras, el algoritmo es la mejor aproximación que podemos encontrar para determinar qué páginas fueron escritas después de que Mozilla se convirtió en un importante usuario y conocido agente en la Web.

Modo estándar completo

The following trigger full standards mode:

Modo Casi Estándar

El disparador siguiente modo casi estándar. Modo Casi Estándar Casi el modo estándar fue creado después de 1,0 y 1.1alpha, pero antes de 1.0.1 y 1.1beta. Antes de modo casi estándar fue creado estos doctypes disparado completo modo estándar.

Modo Peculiaridades

Los siguientes peculiaridades activar el modo (de esta lista ha de ser global para garantizar que las páginas ya existentes en el modo de disparo peculiaridades web):

The following sites have been useful in preparing this list: W3C HTML Validator, HTMLHelp HTML Validator.

Note that all public identifier comparisons are case-insensitive due to the significant number of pages that use public identifiers with incorrect case. (This is technically incorrect, since the strings are case sensitive.)

See Also

Original Document Information

{{ languages( { "fr": "fr/Le_sniffing_de_DOCTYPE_dans_Mozilla", "ja": "ja/Mozilla\'s_DOCTYPE_sniffing" } ) }}

Revision Source

<p><span class="medium_text" id="result_box"><span style="background-color: rgb(255, 255, 255);" title="This document describes how Mozilla uses
the DOCTYPE declaration to determine strict mode vs. quirks mode.">Este documento describe cómo Mozilla utiliza la declaración DOCTYPE para determinar el modo estricto frente al </span></span><a href="/en/Mozilla's_Quirks_Mode" title="en/Mozilla's_Quirks_Mode"><span class="medium_text" id="result_box"><span style="background-color: rgb(255, 255, 255);" title="This document describes how Mozilla uses
the DOCTYPE declaration to determine strict mode vs. quirks mode.">modo</span></span><span class="medium_text" id="result_box"><span style="background-color: rgb(255, 255, 255);" title="This document describes how Mozilla uses
the DOCTYPE declaration to determine strict mode vs. quirks mode."> peculiaridades</span></span></a>. <span class="short_text" id="result_box"><span style="background-color: rgb(255, 255, 255);" title="The code that makes this determination is
currently in">El código que hace esta determinación se encuentra actualmente en</span></span> {{ Source("parser/htmlparser/src/nsParser.cpp#1184", "DetermineParseMode() in nsParser.cpp") }}. <span class="short_text" id="result_box"><span style="background-color: rgb(255, 255, 255);" title="See">Ver </span></span>{{ Bug("1312") }} y {{ Bug("55264") }} <span class="short_text" id="result_box"><span style="background-color: rgb(255, 255, 255);" title="for some of the history of the mode
determination.">por parte de la historia de la determinación de modos. </span><span style="background-color: rgb(255, 255, 255);" title="See">Ver</span></span> {{ Bug("153032") }} <span class="medium_text" id="result_box"><span title="for the creation
of the Almost-Standards mode around Mozilla 1.0.">para la creación de los modos </span></span><span class="medium_text" id="result_box"><span title="for the creation
of the Almost-Standards mode around Mozilla 1.0.">casi</span></span><span class="medium_text" id="result_box"><span title="for the creation
of the Almost-Standards mode around Mozilla 1.0."> estándares en torno a Mozilla 1.0. </span><span style="background-color: rgb(255, 255, 255);" title="The goals that led
to choosing this behavior were the following:">Los objetivos que llevaron a la elección de este comportamiento fueron los siguientes:</span></span></p>
<ul> <li><span class="long_text" id="result_box"><span style="background-color: rgb(255, 255, 255);" title="Almost all existing text/html pages on the
    Web that need to be in quirks mode to be displayed correctly should be
    displayed using quirks mode.">Casi todos los textos existentes o páginas HTML en la Web que necesitan estar en modo de peculiaridades que se muestren correctamente se debe mostrar el modo de uso de peculiaridades. </span><span style="background-color: rgb(255, 255, 255);" title="(Almost all, rather than all, to allow for the following points
    as well.)">(Casi todos, más que todo, para permitir que los siguientes puntos también).</span></span></li> <li><span class="medium_text" id="result_box"><span style="background-color: rgb(255, 255, 255);" title="Authors writing Web pages to current
    standards should be able to trigger strict mode.">Los autores que escriben las páginas web a las normas actuales deben ser capaces de activar el modo estricto.</span></span></li> <li><span class="medium_text" id="result_box"><span style="background-color: rgb(255, 255, 255);" title="Pages written using any public identifiers
    in DOCTYPE declarations that appear in the future should be displayed
    using strict mode.">Las páginas escritas con cualquier identificadores públicos en las declaraciones de DOCTYPE que aparecen en el futuro se debe mostrar con el modo estricto.</span></span></li>
</ul>
<p><span class="long_text" id="result_box"><span style="background-color: rgb(255, 255, 255);" title="In other words, the algorithm is the best
approximation we can find for determining which pages were written after
Mozilla became a known important user-agent on the Web.">En otras palabras, el algoritmo es la mejor aproximación que podemos encontrar para determinar qué páginas fueron escritas después de que Mozilla se convirtió en un importante usuario y conocido agente en la Web.</span></span></p>
<h2 name="Full_Standards_Mode"><span class="short_text" id="result_box"><span style="background-color: rgb(255, 255, 255);" title="Full Standards Mode">Modo estándar completo<br>
</span></span></h2>
<p><span class="short_text" id="result_box"><span style="background-color: rgb(255, 255, 255);" title="The following trigger full standards mode:">The following trigger full standards mode:</span></span></p>
<ul> <li><span class="medium_text" id="result_box"><span style="background-color: rgb(255, 255, 255);" title="Any document sent with an XML MIME type
    such as text/xml, application/xml, or application/xhtml+xml (since
    sniffing only occurs for documents sent as text/html).">Cualquier documento enviado con un tipo MIME XML como texto / xml, application / xml o application / xhtml + xml (ya que sólo se produce para olfatear los documentos enviados como texto / html).</span></span></li> <li><span class="medium_text" id="result_box"><span style="background-color: rgb(255, 255, 255);" title='Any "DOCTYPE HTML SYSTEM" as
    opposed to "DOCTYPE HTML PUBLIC", except for the IBM doctype
    noted below'>Cualquier  </span></span><a class="external" href="http://dbaron.org/mozilla/tests/compat?doctype=%3C%21DOCTYPE+HTML+SYSTEM+%22http%3A%2F%2Fwww.w3.org%2FTR%2FREC-html40%2Fstrict.dtd%22%3E">"DOCTYPE HTML SYSTEM"</a> <span class="medium_text" id="result_box"><span style="background-color: rgb(255, 255, 255);" title='Any "DOCTYPE HTML SYSTEM" as
    opposed to "DOCTYPE HTML PUBLIC", except for the IBM doctype
    noted below'>en lugar de "DOCTYPE HTML PUBLIC", excepto para el doctype de IBM se indica a continuación</span></span></li> <li><span class="short_text" id="result_box"><span style="background-color: rgb(255, 255, 255);" title="A DOCTYPE declaration without a DTD, i.e.,">Una declaración DOCTYPE sin un DTD, es decir,</span></span> <a class="external" href="http://dbaron.org/mozilla/tests/compat?doctype=%3C%21DOCTYPE+HTML%3E">&lt;!DOCTYPE HTML&gt;</a>.</li> <li><span class="short_text" id="result_box"><span style="background-color: rgb(255, 255, 255);" title="A DOCTYPE declaration with an">Una declaración DOCTYPE con un</span></span> <a class="external" href="http://dbaron.org/mozilla/tests/compat?doctype=%3C%21DOCTYPE+HTML+%5B+%3C%21ELEMENT+TEST+-+-+%28P%29+%3E+%5D%3E+"><span class="short_text" id="result_box"><span style="background-color: rgb(255, 255, 255);" title="internal subset">subconjunto interno</span></span></a>.</li> <li><span class="short_text" id="result_box"><span style="background-color: rgb(255, 255, 255);" title="Any unknown doctype, which should include
    the following (technically known) doctypes:">Cualquier doctype desconocido, que debe incluir lo siguiente (técnicamente conocida) doctypes:</span></span> <ul> <li><span class="short_text" id="result_box"><span style="background-color: rgb(255, 255, 255);" title="The public identifier">El identificador público</span></span> <a class="external" href="http://dbaron.org/mozilla/tests/compat?doctype=%3C%21DOCTYPE+HTML+PUBLIC+%22-%2F%2FW3C%2F%2FDTD+HTML+4.01%2F%2FEN%22%3E">"-//W3C//DTD HTML 4.01//EN"</a>.</li> <li><span class="short_text" id="result_box"><span style="background-color: rgb(255, 255, 255);" title="The public identifier">El identificador público</span></span> <a class="external" href="http://dbaron.org/mozilla/tests/compat?doctype=%3C%21DOCTYPE+HTML+PUBLIC+%22-%2F%2FW3C%2F%2FDTD+HTML+4.0%2F%2FEN%22%3E">"-//W3C//DTD HTML 4.0//EN"</a>.</li> <li><span class="short_text" id="result_box"><span style="background-color: rgb(255, 255, 255);" title="The public identifier">El identificador público</span></span> <a class="external" href="http://dbaron.org/mozilla/tests/compat?doctype=%3C%21DOCTYPE+HTML+PUBLIC+%22-%2F%2FW3C%2F%2FDTD+XHTML+1.0+Strict%2F%2FEN%22%3E">"-//W3C//DTD XHTML 1.0 Strict//EN"</a>.</li> <li><span class="short_text" id="result_box"><span style="background-color: rgb(255, 255, 255);" title="The public identifier">El identificador público</span></span> <a class="external" href="http://dbaron.org/mozilla/tests/compat?doctype=%3C%21DOCTYPE+HTML+PUBLIC+%22ISO%2FIEC+15445:2000%2F%2FDTD+HyperText+Markup+Language%2F%2FEN%22%3E">"ISO/IEC 15445:2000//DTD HyperText Markup Language//EN"</a>.</li> <li><span class="short_text" id="result_box"><span style="background-color: rgb(255, 255, 255);" title="The public identifier">El identificador público</span></span> <a class="external" href="http://dbaron.org/mozilla/tests/compat?doctype=%3C%21DOCTYPE+HTML+PUBLIC+%22ISO%2FIEC+15445:2000%2F%2FDTD+HTML%2F%2FEN%22%3E">"ISO/IEC 15445:2000//DTD HTML//EN"</a>.</li> <li><span class="short_text" id="result_box"><span style="background-color: rgb(255, 255, 255);" title="The public identifier">El identificador público</span></span> <a class="external" href="http://dbaron.org/mozilla/tests/compat?doctype=%3C%21DOCTYPE+HTML+PUBLIC+%22-%2F%2FIETF%2F%2FDTD+HTML+i18n%2F%2FEN%22%3E">"-//IETF//DTD HTML i18n//EN"</a>.</li> </ul> </li>
</ul>
<h2 name="Almost_Standards_Mode"><span class="short_text" id="result_box"><span style="background-color: rgb(255, 255, 255);" title="Almost Standards Mode">Modo Casi Estándar</span></span></h2>
<p><span class="short_text" id="result_box"><span style="background-color: rgb(255, 255, 255);" title="The following trigger almost standards
mode.">El disparador siguiente modo casi estándar.</span></span> <a href="/en/Gecko's_&quot;Almost_Standards&quot;_Mode" title="en/Gecko's_&quot;Almost_Standards&quot;_Mode">Modo Casi Estándar</a> <span class="medium_text" id="result_box"><span style="background-color: rgb(255, 255, 255);" title="Almost standards mode was created after 1.0
and 1.1alpha, but before 1.0.1 and 1.1beta.">Casi el modo estándar fue creado después de 1,0 y 1.1alpha, pero antes de 1.0.1 y 1.1beta. </span><span style="background-color: rgb(255, 255, 255);" title="Before almost
standards mode was created these doctypes triggered full standards
mode.">Antes de modo casi estándar fue creado estos doctypes disparado completo modo estándar.</span></span></p>
<ul> <li><span class="short_text" id="result_box"><span style="background-color: rgb(255, 255, 255);" title="The public identifier">El identificador público</span></span> <a class="external" href="http://dbaron.org/mozilla/tests/compat?doctype=%3C%21DOCTYPE+HTML+PUBLIC+%22-%2F%2FW3C%2F%2FDTD+XHTML+1.0+Transitional%2F%2FEN%22%3E">"-//W3C//DTD XHTML 1.0 Transitional//EN"</a>.</li> <li><span class="short_text" id="result_box"><span style="background-color: rgb(255, 255, 255);" title="The public identifier">El identificador público</span></span> <a class="external" href="http://dbaron.org/mozilla/tests/compat?doctype=%3C%21DOCTYPE+HTML+PUBLIC+%22-%2F%2FW3C%2F%2FDTD+XHTML+1.0+Frameset%2F%2FEN%22%3E">"-//W3C//DTD XHTML 1.0 Frameset//EN"</a>.</li> <li><span class="short_text" id="result_box"><span style="background-color: rgb(255, 255, 255);" title="The public identifier">El identificador público</span></span> <a class="external" href="http://dbaron.org/mozilla/tests/compat?doctype=%3C%21DOCTYPE+HTML+PUBLIC+%22-%2F%2FW3C%2F%2FDTD+HTML+4.01+Transitional%2F%2FEN%22+%22http%3A%2F%2Fwww.w3.org%2FTR%2Fhtml4%2Floose.dtd%22%3E">"-//W3C//DTD HTML 4.01 Transitional//EN"</a>, <span class="short_text" id="result_box"><span style="background-color: rgb(255, 255, 255);" title="with a system identifier.">con un identificador de sistema.</span></span></li> <li><span class="short_text" id="result_box"><span style="background-color: rgb(255, 255, 255);" title="The public identifier">El identificador público</span></span> <a class="external" href="http://dbaron.org/mozilla/tests/compat?doctype=%3C%21DOCTYPE+HTML+PUBLIC+%22-%2F%2FW3C%2F%2FDTD+HTML+4.01+Frameset%2F%2FEN%22+%22http%3A%2F%2Fwww.w3.org%2FTR%2Fhtml4%2Fframeset.dtd%22%3E">"-//W3C//DTD HTML 4.01 Frameset//EN"</a>, <span class="short_text" id="result_box"><span style="background-color: rgb(255, 255, 255);" title="with a system identifier.">con un identificador de sistema.</span></span></li>
</ul>
<h2 name="Quirks_Mode"><span class="short_text" id="result_box"><span style="background-color: rgb(255, 255, 255);" title="Quirks Mode">Modo Peculiaridades<br>
</span></span></h2>
<p><span class="medium_text" id="result_box"><span style="background-color: rgb(255, 255, 255);" title="The following trigger quirks mode (this
list needs to be comprehensive to ensure that pages already existing on
the Web trigger quirks mode):">Los siguientes peculiaridades activar el modo (de esta lista ha de ser global para garantizar que las páginas ya existentes en el modo de disparo peculiaridades web):</span></span></p>
<p>The following sites have been useful in preparing this list: <a class="external" href="http://validator.w3.org/sgml-lib/catalog">W3C HTML Validator</a>, <a class="external" href="http://www.htmlhelp.com/tools/validator/lib/catalog">HTMLHelp HTML Validator</a>.</p>
<ul> <li>The <a class="external" href="http://dbaron.org/mozilla/tests/compat?doctype=">absence of a DOCTYPE</a>.</li> <li>An <a class="external" href="http://dbaron.org/mozilla/tests/compat?doctype=%3C%3Fxml+version%3D%221.0%22%3F%3E">XML declaration (pseudo-PI) without a doctype</a> (in other words, ignore the XML declaration and use the DOCTYPE). In 1.0 and 1.1alpha and earlier (but not in 1.0.1 or 1.1beta), the presence of an XML declaration triggered full standards mode.</li> <li>A DOCTYPE declaration that <a class="external" href="http://dbaron.org/mozilla/tests/compat?doctype=%3C%21DOCTYPE+HTML+NOT+UNDERSTOOD%3E">cannot be understood</a> (e.g., no matching quote).</li> <li>The system identifier <a class="external" href="http://dbaron.org/mozilla/tests/compat?doctype=%3C%21DOCTYPE+html+SYSTEM+%22http%3A%2F%2Fwww.ibm.com%2Fdata%2Fdtd%2Fv11%2Fibmxhtml1-transitional.dtd%22%3E">"http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd"</a> (before 1.5b and 1.4.2, this triggered almost standards mode).</li> <li>The public identifier <a class="external" href="http://dbaron.org/mozilla/tests/compat?doctype=%3C%21DOCTYPE+HTML+PUBLIC+%22-%2F%2FW3C%2F%2FDTD+HTML+4.01+Transitional%2F%2FEN%22%3E">"-//W3C//DTD HTML 4.01 Transitional//EN"</a>, without a system identifier.</li> <li>The public identifier <a class="external" href="http://dbaron.org/mozilla/tests/compat?doctype=%3C%21DOCTYPE+HTML+PUBLIC+%22-%2F%2FW3C%2F%2FDTD+HTML+4.01+Frameset%2F%2FEN%22%3E">"-//W3C//DTD HTML 4.01 Frameset//EN"</a>, without a system identifier.</li> <li>The public identifier <a class="external" href="http://dbaron.org/mozilla/tests/compat?doctype=%3C%21DOCTYPE+HTML+PUBLIC+%22-%2F%2FW3C%2F%2FDTD+HTML+4.0+Transitional%2F%2FEN%22%3E">"-//W3C//DTD HTML 4.0 Transitional//EN"</a> (see also <a class="external" href="http://dbaron.org/mozilla/tests/compat?doctype=%3C%21DOCTYPE+HTML+PUBLIC+%22-%2F%2FW3C%2F%2FDTD+HTML+4.0+Transitional%2F%2FEN%22+%22http%3A%2F%2Fwww.w3.org%2FTR%2FREC-html40%2Floose.dtd%22%3E">test with a system identifier</a>).</li> <li>The public identifier <a class="external" href="http://dbaron.org/mozilla/tests/compat?doctype=%3C%21DOCTYPE+HTML+PUBLIC+%22-%2F%2FW3C%2F%2FDTD+HTML+4.0+Frameset%2F%2FEN%22%3E">"-//W3C//DTD HTML 4.0 Frameset//EN"</a> (see also <a class="external" href="http://dbaron.org/mozilla/tests/compat?doctype=%3C%21DOCTYPE+HTML+PUBLIC+%22-%2F%2FW3C%2F%2FDTD+HTML+4.0+Frameset%2F%2FEN%22+%22http%3A%2F%2Fwww.w3.org%2FTR%2FREC-html40%2Fframeset.dtd%22%3E">test with a system identifier</a>).</li> <li>The public identifier <a class="external" href="http://dbaron.org/mozilla/tests/compat?doctype=%3C%21DOCTYPE+HTML+PUBLIC+%22-%2F%2FSoftQuad+Software%2F%2FDTD+HoTMetaL+PRO+6.0::19990601::extensions+to+HTML+4.0%2F%2FEN%22%3E">"-//SoftQuad Software//DTD HoTMetaL PRO 6.0::19990601::extensions to HTML 4.0//EN"</a>.</li> <li>The public identifier <a class="external" href="http://dbaron.org/mozilla/tests/compat?doctype=%3C%21DOCTYPE+HTML+PUBLIC+%22-%2F%2FSoftQuad%2F%2FDTD+HoTMetaL+PRO+4.0::19971010::extensions+to+HTML+4.0%2F%2FEN%22%3E">"-//SoftQuad//DTD HoTMetaL PRO 4.0::19971010::extensions to HTML 4.0//EN"</a>.</li> <li>The public identifier <a class="external" href="http://dbaron.org/mozilla/tests/compat?doctype=%3C%21DOCTYPE+HTML+PUBLIC+%22-%2F%2FIETF%2F%2FDTD+HTML%2F%2FEN%2F%2F3.0%22%3E">"-//IETF//DTD HTML//EN//3.0"</a>.</li> <li>The public identifier <a class="external" href="http://dbaron.org/mozilla/tests/compat?doctype=%3C%21DOCTYPE+HTML+PUBLIC+%22-%2F%2FW3O%2F%2FDTD+W3+HTML+3.0%2F%2FEN%2F%2F%22%3E">"-//W3O//DTD W3 HTML 3.0//EN//"</a>.</li> <li>The public identifier <a class="external" href="http://dbaron.org/mozilla/tests/compat?doctype=%3C%21DOCTYPE+HTML+PUBLIC+%22-%2F%2FW3O%2F%2FDTD+W3+HTML+3.0%2F%2FEN%22%3E">"-//W3O//DTD W3 HTML 3.0//EN"</a>.</li> <li>The public identifier <a class="external" href="http://dbaron.org/mozilla/tests/compat?doctype=%3C%21DOCTYPE+HTML+PUBLIC+%22-%2F%2FW3C%2F%2FDTD+HTML+3+1995-03-24%2F%2FEN%22%3E">"-//W3C//DTD HTML 3 1995-03-24//EN"</a>.</li> <li>The public identifier <a class="external" href="http://dbaron.org/mozilla/tests/compat?doctype=%3C%21DOCTYPE+HTML+PUBLIC+%22-%2F%2FIETF%2F%2FDTD+HTML+3.0%2F%2FEN%22%3E">"-//IETF//DTD HTML 3.0//EN"</a>.</li> <li>The public identifier <a class="external" href="http://dbaron.org/mozilla/tests/compat?doctype=%3C%21DOCTYPE+HTML+PUBLIC+%22-%2F%2FIETF%2F%2FDTD+HTML+3.0%2F%2FEN%2F%2F%22%3E">"-//IETF//DTD HTML 3.0//EN//"</a>.</li> <li>The public identifier <a class="external" href="http://dbaron.org/mozilla/tests/compat?doctype=%3C%21DOCTYPE+HTML+PUBLIC+%22-%2F%2FIETF%2F%2FDTD+HTML+3%2F%2FEN%22%3E">"-//IETF//DTD HTML 3//EN"</a>.</li> <li>The public identifier <a class="external" href="http://dbaron.org/mozilla/tests/compat?doctype=%3C%21DOCTYPE+HTML+PUBLIC+%22-%2F%2FIETF%2F%2FDTD+HTML+Level+3%2F%2FEN%22%3E">"-//IETF//DTD HTML Level 3//EN"</a>.</li> <li>The public identifier <a class="external" href="http://dbaron.org/mozilla/tests/compat?doctype=%3C%21DOCTYPE+HTML+PUBLIC+%22-%2F%2FIETF%2F%2FDTD+HTML+Level+3%2F%2FEN%2F%2F3.0%22%3E">"-//IETF//DTD HTML Level 3//EN//3.0"</a>.</li> <li>The public identifier <a class="external" href="http://dbaron.org/mozilla/tests/compat?doctype=%3C%21DOCTYPE+HTML+PUBLIC+%22-%2F%2FIETF%2F%2FDTD+HTML+3.2%2F%2FEN%22%3E">"-//IETF//DTD HTML 3.2//EN"</a>.</li> <li>The public identifier <a class="external" href="http://dbaron.org/mozilla/tests/compat?doctype=%3C%21DOCTYPE+HTML+PUBLIC+%22-%2F%2FAdvaSoft+Ltd%2F%2FDTD+HTML+3.0+asWedit+%2B+extensions%2F%2FEN%22%3E">"-//AS//DTD HTML 3.0 asWedit + extensions//EN"</a>.</li> <li>The public identifier <a class="external" href="http://dbaron.org/mozilla/tests/compat?doctype=%3C%21DOCTYPE+HTML+PUBLIC+%22-%2F%2FAdvaSoft+Ltd%2F%2FDTD+HTML+3.0+asWedit+%2B+extensions%2F%2FEN%22%3E">"-//AdvaSoft Ltd//DTD HTML 3.0 asWedit + extensions//EN"</a>.</li> <li>The public identifier <a class="external" href="http://dbaron.org/mozilla/tests/compat?doctype=%3C%21DOCTYPE+HTML+PUBLIC+%22-%2F%2FIETF%2F%2FDTD+HTML+Strict%2F%2FEN%2F%2F3.0%22%3E">"-//IETF//DTD HTML Strict//EN//3.0"</a>.</li> <li>The public identifier <a class="external" href="http://dbaron.org/mozilla/tests/compat?doctype=%3C%21DOCTYPE+HTML+PUBLIC+%22-%2F%2FW3O%2F%2FDTD+W3+HTML+Strict+3.0%2F%2FEN%2F%2F%22%3E">"-//W3O//DTD W3 HTML Strict 3.0//EN//"</a>.</li> <li>The public identifier <a class="external" href="http://dbaron.org/mozilla/tests/compat?doctype=%3C%21DOCTYPE+HTML+PUBLIC+%22-%2F%2FIETF%2F%2FDTD+HTML+Strict+Level+3%2F%2FEN%22%3E">"-//IETF//DTD HTML Strict Level 3//EN"</a>.</li> <li>The public identifier <a class="external" href="http://dbaron.org/mozilla/tests/compat?doctype=%3C%21DOCTYPE+HTML+PUBLIC+%22-%2F%2FIETF%2F%2FDTD+HTML+Strict+Level+3%2F%2FEN%2F%2F3.0%22%3E">"-//IETF//DTD HTML Strict Level 3//EN//3.0"</a>.</li> <li>The public identifier <a class="external" href="http://dbaron.org/mozilla/tests/compat?doctype=%3C%21DOCTYPE+HTML+PUBLIC+%22HTML%22%3E">"HTML"</a>.</li> <li>The public identifier <a class="external" href="http://dbaron.org/mozilla/tests/compat?doctype=%3C%21DOCTYPE+HTML+PUBLIC+%22-%2F%2FIETF%2F%2FDTD+HTML%2F%2FEN%22%3E">"-//IETF//DTD HTML//EN"</a>.</li> <li>The public identifier <a class="external" href="http://dbaron.org/mozilla/tests/compat?doctype=%3C%21DOCTYPE+HTML+PUBLIC+%22-%2F%2FIETF%2F%2FDTD+HTML%2F%2FEN%2F%2F2.0%22%3E">"-//IETF//DTD HTML//EN//2.0"</a>.</li> <li>The public identifier <a class="external" href="http://dbaron.org/mozilla/tests/compat?doctype=%3C%21DOCTYPE+HTML+PUBLIC+%22-%2F%2FIETF%2F%2FDTD+HTML+2.0%2F%2FEN%22%3E">"-//IETF//DTD HTML 2.0//EN"</a>.</li> <li>The public identifier <a class="external" href="http://dbaron.org/mozilla/tests/compat?doctype=%3C%21DOCTYPE+HTML+PUBLIC+%22-%2F%2FIETF%2F%2FDTD+HTML+Level+2%2F%2FEN%22%3E">"-//IETF//DTD HTML Level 2//EN"</a>.</li> <li>The public identifier <a class="external" href="http://dbaron.org/mozilla/tests/compat?doctype=%3C%21DOCTYPE+HTML+PUBLIC+%22-%2F%2FIETF%2F%2FDTD+HTML+Level+2%2F%2FEN%2F%2F2.0%22%3E">"-//IETF//DTD HTML Level 2//EN//2.0"</a>.</li> <li>The public identifier <a class="external" href="http://dbaron.org/mozilla/tests/compat?doctype=%3C%21DOCTYPE+HTML+PUBLIC+%22-%2F%2FIETF%2F%2FDTD+HTML+2.0+Level+2%2F%2FEN%22%3E">"-//IETF//DTD HTML 2.0 Level 2//EN"</a>.</li> <li>The public identifier <a class="external" href="http://dbaron.org/mozilla/tests/compat?doctype=%3C%21DOCTYPE+HTML+PUBLIC+%22-%2F%2FIETF%2F%2FDTD+HTML+Level+1%2F%2FEN%22%3E">"-//IETF//DTD HTML Level 1//EN"</a>.</li> <li>The public identifier <a class="external" href="http://dbaron.org/mozilla/tests/compat?doctype=%3C%21DOCTYPE+HTML+PUBLIC+%22-%2F%2FIETF%2F%2FDTD+HTML+Level+1%2F%2FEN%2F%2F2.0%22%3E">"-//IETF//DTD HTML Level 1//EN//2.0"</a>.</li> <li>The public identifier <a class="external" href="http://dbaron.org/mozilla/tests/compat?doctype=%3C%21DOCTYPE+HTML+PUBLIC+%22-%2F%2FIETF%2F%2FDTD+HTML+2.0+Level+1%2F%2FEN%22%3E">"-//IETF//DTD HTML 2.0 Level 1//EN"</a>.</li> <li>The public identifier <a class="external" href="http://dbaron.org/mozilla/tests/compat?doctype=%3C%21DOCTYPE+HTML+PUBLIC+%22-%2F%2FIETF%2F%2FDTD+HTML+Level+0%2F%2FEN%22%3E">"-//IETF//DTD HTML Level 0//EN"</a>.</li> <li>The public identifier <a class="external" href="http://dbaron.org/mozilla/tests/compat?doctype=%3C%21DOCTYPE+HTML+PUBLIC+%22-%2F%2FIETF%2F%2FDTD+HTML+Level+0%2F%2FEN%2F%2F2.0%22%3E">"-//IETF//DTD HTML Level 0//EN//2.0"</a>.</li> <li>The public identifier <a class="external" href="http://dbaron.org/mozilla/tests/compat?doctype=%3C%21DOCTYPE+HTML+PUBLIC+%22-%2F%2FIETF%2F%2FDTD+HTML+Strict%2F%2FEN%22%3E">"-//IETF//DTD HTML Strict//EN"</a>.</li> <li>The public identifier <a class="external" href="http://dbaron.org/mozilla/tests/compat?doctype=%3C%21DOCTYPE+HTML+PUBLIC+%22-%2F%2FIETF%2F%2FDTD+HTML+Strict%2F%2FEN%2F%2F2.0%22%3E">"-//IETF//DTD HTML Strict//EN//2.0"</a>.</li> <li>The public identifier <a class="external" href="http://dbaron.org/mozilla/tests/compat?doctype=%3C%21DOCTYPE+HTML+PUBLIC+%22-%2F%2FIETF%2F%2FDTD+HTML+Strict+Level+2%2F%2FEN%22%3E">"-//IETF//DTD HTML Strict Level 2//EN"</a>.</li> <li>The public identifier <a class="external" href="http://dbaron.org/mozilla/tests/compat?doctype=%3C%21DOCTYPE+HTML+PUBLIC+%22-%2F%2FIETF%2F%2FDTD+HTML+Strict+Level+2%2F%2FEN%2F%2F2.0%22%3E">"-//IETF//DTD HTML Strict Level 2//EN//2.0"</a>.</li> <li>The public identifier <a class="external" href="http://dbaron.org/mozilla/tests/compat?doctype=%3C%21DOCTYPE+HTML+PUBLIC+%22-%2F%2FIETF%2F%2FDTD+HTML+2.0+Strict%2F%2FEN%22%3E">"-//IETF//DTD HTML 2.0 Strict//EN"</a>.</li> <li>The public identifier <a class="external" href="http://dbaron.org/mozilla/tests/compat?doctype=%3C%21DOCTYPE+HTML+PUBLIC+%22-%2F%2FIETF%2F%2FDTD+HTML+2.0+Strict+Level+2%2F%2FEN%22%3E">"-//IETF//DTD HTML 2.0 Strict Level 2//EN"</a>.</li> <li>The public identifier <a class="external" href="http://dbaron.org/mozilla/tests/compat?doctype=%3C%21DOCTYPE+HTML+PUBLIC+%22-%2F%2FIETF%2F%2FDTD+HTML+Strict+Level+1%2F%2FEN%22%3E">"-//IETF//DTD HTML Strict Level 1//EN"</a>.</li> <li>The public identifier <a class="external" href="http://dbaron.org/mozilla/tests/compat?doctype=%3C%21DOCTYPE+HTML+PUBLIC+%22-%2F%2FIETF%2F%2FDTD+HTML+Strict+Level+1%2F%2FEN%2F%2F2.0%22%3E">"-//IETF//DTD HTML Strict Level 1//EN//2.0"</a>.</li> <li>The public identifier <a class="external" href="http://dbaron.org/mozilla/tests/compat?doctype=%3C%21DOCTYPE+HTML+PUBLIC+%22-%2F%2FIETF%2F%2FDTD+HTML+2.0+Strict+Level+1%2F%2FEN%22%3E">"-//IETF//DTD HTML 2.0 Strict Level 1//EN"</a>.</li> <li>The public identifier <a class="external" href="http://dbaron.org/mozilla/tests/compat?doctype=%3C%21DOCTYPE+HTML+PUBLIC+%22-%2F%2FIETF%2F%2FDTD+HTML+Strict+Level+0%2F%2FEN%22%3E">"-//IETF//DTD HTML Strict Level 0//EN"</a>.</li> <li>The public identifier <a class="external" href="http://dbaron.org/mozilla/tests/compat?doctype=%3C%21DOCTYPE+HTML+PUBLIC+%22-%2F%2FIETF%2F%2FDTD+HTML+Strict+Level+0%2F%2FEN%2F%2F2.0%22%3E">"-//IETF//DTD HTML Strict Level 0//EN//2.0"</a>.</li> <li>The public identifier <a class="external" href="http://dbaron.org/mozilla/tests/compat?doctype=%3C%21DOCTYPE+HTML+PUBLIC+%22-%2F%2FWebTechs%2F%2FDTD+Mozilla+HTML%2F%2FEN%22%3E">"-//WebTechs//DTD Mozilla HTML//EN"</a>.</li> <li>The public identifier <a class="external" href="http://dbaron.org/mozilla/tests/compat?doctype=%3C%21DOCTYPE+HTML+PUBLIC+%22-%2F%2FWebTechs%2F%2FDTD+Mozilla+HTML+2.0%2F%2FEN%22%3E">"-//WebTechs//DTD Mozilla HTML 2.0//EN"</a>.</li> <li>The public identifier <a class="external" href="http://dbaron.org/mozilla/tests/compat?doctype=%3C%21DOCTYPE+HTML+PUBLIC+%22-%2F%2FNetscape+Comm.+Corp.%2F%2FDTD+HTML%2F%2FEN%22%3E">"-//Netscape Comm. Corp.//DTD HTML//EN"</a>.</li> <li>The public identifier <a class="external" href="http://dbaron.org/mozilla/tests/compat?doctype=%3C%21DOCTYPE+HTML+PUBLIC+%22-%2F%2FNetscape+Comm.+Corp.%2F%2FDTD+HTML%2F%2FEN%22%3E">"-//Netscape Comm. Corp.//DTD HTML//EN"</a>.</li> <li>The public identifier <a class="external" href="http://dbaron.org/mozilla/tests/compat?doctype=%3C%21DOCTYPE+HTML+PUBLIC+%22-%2F%2FNetscape+Comm.+Corp.%2F%2FDTD+Strict+HTML%2F%2FEN%22%3E">"-//Netscape Comm. Corp.//DTD Strict HTML//EN"</a>.</li> <li>The public identifier <a class="external" href="http://dbaron.org/mozilla/tests/compat?doctype=%3C%21DOCTYPE+HTML+PUBLIC+%22-%2F%2FMicrosoft%2F%2FDTD+Internet+Explorer+2.0+HTML%2F%2FEN%22%3E">"-//Microsoft//DTD Internet Explorer 2.0 HTML//EN"</a>.</li> <li>The public identifier <a class="external" href="http://dbaron.org/mozilla/tests/compat?doctype=%3C%21DOCTYPE+HTML+PUBLIC+%22-%2F%2FMicrosoft%2F%2FDTD+Internet+Explorer+2.0+HTML+Strict%2F%2FEN%22%3E">"-//Microsoft//DTD Internet Explorer 2.0 HTML Strict//EN"</a>.</li> <li>The public identifier <a class="external" href="http://dbaron.org/mozilla/tests/compat?doctype=%3C%21DOCTYPE+HTML+PUBLIC+%22-%2F%2FMicrosoft%2F%2FDTD+Internet+Explorer+2.0+Tables%2F%2FEN%22%3E">"-//Microsoft//DTD Internet Explorer 2.0 Tables//EN"</a>.</li> <li>The public identifier <a class="external" href="http://dbaron.org/mozilla/tests/compat?doctype=%3C%21DOCTYPE+HTML+PUBLIC+%22-%2F%2FMicrosoft%2F%2FDTD+Internet+Explorer+3.0+HTML%2F%2FEN%22%3E">"-//Microsoft//DTD Internet Explorer 3.0 HTML//EN"</a>.</li> <li>The public identifier <a class="external" href="http://dbaron.org/mozilla/tests/compat?doctype=%3C%21DOCTYPE+HTML+PUBLIC+%22-%2F%2FMicrosoft%2F%2FDTD+Internet+Explorer+3.0+HTML+Strict%2F%2FEN%22%3E">"-//Microsoft//DTD Internet Explorer 3.0 HTML Strict//EN"</a>.</li> <li>The public identifier <a class="external" href="http://dbaron.org/mozilla/tests/compat?doctype=%3C%21DOCTYPE+HTML+PUBLIC+%22-%2F%2FMicrosoft%2F%2FDTD+Internet+Explorer+3.0+Tables%2F%2FEN%22%3E">"-//Microsoft//DTD Internet Explorer 3.0 Tables//EN"</a>.</li> <li>The public identifier <a class="external" href="http://dbaron.org/mozilla/tests/compat?doctype=%3C%21DOCTYPE+HTML+PUBLIC+%22-%2F%2FSun+Microsystems+Corp.%2F%2FDTD+HotJava+HTML%2F%2FEN%22%3E">"-//Sun Microsystems Corp.//DTD HotJava HTML//EN"</a>.</li> <li>The public identifier <a class="external" href="http://dbaron.org/mozilla/tests/compat?doctype=%3C%21DOCTYPE+HTML+PUBLIC+%22-%2F%2FSun+Microsystems+Corp.%2F%2FDTD+HotJava+Strict+HTML%2F%2FEN%22%3E">"-//Sun Microsystems Corp.//DTD HotJava Strict HTML//EN"</a>.</li> <li>The public identifier <a class="external" href="http://dbaron.org/mozilla/tests/compat?doctype=%3C%21DOCTYPE+HTML+PUBLIC+%22-%2F%2FIETF%2F%2FDTD+HTML+2.1E%2F%2FEN%22%3E">"-//IETF//DTD HTML 2.1E//EN"</a>.</li> <li>The public identifier <a class="external" href="http://dbaron.org/mozilla/tests/compat?doctype=%3C%21DOCTYPE+HTML+PUBLIC+%22-%2F%2FO%27Reilly+and+Associates%2F%2FDTD+HTML+Extended+1.0%2F%2FEN%22%3E">"-//O'Reilly and Associates//DTD HTML Extended 1.0//EN"</a>.</li> <li>The public identifier <a class="external" href="http://dbaron.org/mozilla/tests/compat?doctype=%3C%21DOCTYPE+HTML+PUBLIC+%22-%2F%2FO%27Reilly+and+Associates%2F%2FDTD+HTML+Extended+Relaxed+1.0%2F%2FEN%22%3E">"-//O'Reilly and Associates//DTD HTML Extended Relaxed 1.0//EN"</a>.</li> <li>The public identifier <a class="external" href="http://dbaron.org/mozilla/tests/compat?doctype=%3C%21DOCTYPE+HTML+PUBLIC+%22-%2F%2FO%27Reilly+and+Associates%2F%2FDTD+HTML+2.0%2F%2FEN%22%3E">"-//O'Reilly and Associates//DTD HTML 2.0//EN"</a>.</li> <li>The public identifier <a class="external" href="http://dbaron.org/mozilla/tests/compat?doctype=%3C%21DOCTYPE+HTML+PUBLIC+%22-%2F%2FSQ%2F%2FDTD+HTML+2.0+HoTMetaL+%2B+extensions%2F%2FEN%22%3E">"-//SQ//DTD HTML 2.0 HoTMetaL + extensions//EN"</a>.</li> <li>The public identifier <a class="external" href="http://dbaron.org/mozilla/tests/compat?doctype=%3C%21DOCTYPE+HTML+PUBLIC+%22-%2F%2FSpyglass%2F%2FDTD+HTML+2.0+Extended%2F%2FEN%22%3E">"-//Spyglass//DTD HTML 2.0 Extended//EN"</a>.</li> <li>The public identifier <a class="external" href="http://dbaron.org/mozilla/tests/compat?doctype=%3C%21DOCTYPE+HTML+PUBLIC+%22%2B%2F%2FSilmaril%2F%2FDTD+HTML+Pro+v0r11+19970101%2F%2FEN%22%3E">"+//Silmaril//DTD HTML Pro v0r11 19970101//EN"</a>.</li> <li>The public identifier <a class="external" href="http://dbaron.org/mozilla/tests/compat?doctype=%3C%21DOCTYPE+HTML+PUBLIC+%22-%2F%2FW3C%2F%2FDTD+HTML+Experimental+19960712%2F%2FEN%22%3E">"-//W3C//DTD HTML Experimental 19960712//EN"</a>.</li> <li>The public identifier <a class="external" href="http://dbaron.org/mozilla/tests/compat?doctype=%3C%21DOCTYPE+HTML+PUBLIC+%22-%2F%2FW3C%2F%2FDTD+HTML+3.2%2F%2FEN%22%3E">"-//W3C//DTD HTML 3.2//EN"</a>.</li> <li>The public identifier <a class="external" href="http://dbaron.org/mozilla/tests/compat?doctype=%3C%21DOCTYPE+HTML+PUBLIC+%22-%2F%2FW3C%2F%2FDTD+HTML+3.2+Final%2F%2FEN%22%3E">"-//W3C//DTD HTML 3.2 Final//EN"</a>.</li> <li>The public identifier <a class="external" href="http://dbaron.org/mozilla/tests/compat?doctype=%3C%21DOCTYPE+HTML+PUBLIC+%22-%2F%2FW3C%2F%2FDTD+HTML+3.2+Draft%2F%2FEN%22%3E">"-//W3C//DTD HTML 3.2 Draft//EN"</a>.</li> <li>The public identifier <a class="external" href="http://dbaron.org/mozilla/tests/compat?doctype=%3C%21DOCTYPE+HTML+PUBLIC+%22-%2F%2FW3C%2F%2FDTD+HTML+Experimental+970421%2F%2FEN%22%3E">"-//W3C//DTD HTML Experimental 970421//EN"</a>.</li> <li>The public identifier <a class="external" href="http://dbaron.org/mozilla/tests/compat?doctype=%3C%21DOCTYPE+HTML+PUBLIC+%22-%2F%2FW3C%2F%2FDTD+HTML+3.2S+Draft%2F%2FEN%22%3E">"-//W3C//DTD HTML 3.2S Draft//EN"</a>.</li> <li>The public identifier <a class="external" href="http://dbaron.org/mozilla/tests/compat?doctype=%3C%21DOCTYPE+HTML+PUBLIC+%22-%2F%2FW3C%2F%2FDTD+W3+HTML%2F%2FEN%22%3E">"-//W3C//DTD W3 HTML//EN"</a>.</li> <li>The public identifier <a class="external" href="http://dbaron.org/mozilla/tests/compat?pubid=-%2F%2FMetrius%2F%2FDTD+Metrius+Presentational%2F%2FEN">"-//Metrius//DTD Metrius Presentational//EN"</a>.</li>
</ul>
<p>Note that all public identifier comparisons are case-insensitive due to the significant number of pages that use public identifiers with incorrect case. (This is technically incorrect, since the strings are case sensitive.)</p>
<h2 name="See_Also">See Also</h2>
<ul> <li><a href="/en/Web_Development" title="en/Web_Development">Web Development</a></li> <li><a href="/en/Mozilla's_Quirks_Mode" title="en/Mozilla's_Quirks_Mode">Mozilla's Quirks Mode</a></li> <li><a href="/en/Mozilla_Quirks_Mode_Behavior" title="en/Mozilla_Quirks_Mode_Behavior">Mozilla Quirks Mode Behavior</a></li>
</ul>
<div class="originaldocinfo">
<h2 name="Original_Document_Information">Original Document Information</h2>
<ul> <li>Author(s): <a class="external" href="http://dbaron.org/">David Baron</a></li> <li>Last Updated Date: August 2, 2005</li> <li>Copyright Information: Copyright (C) <a class="external" href="http://dbaron.org/">David Baron</a></li>
</ul>
</div>
<p>{{ languages( { "fr": "fr/Le_sniffing_de_DOCTYPE_dans_Mozilla", "ja": "ja/Mozilla\'s_DOCTYPE_sniffing" } ) }}</p>
Revert to this revision