Skip to content
This repository was archived by the owner on Jan 15, 2021. It is now read-only.

Commit 6670543

Browse files
committed
Elaborate on quirks mode
1 parent d2a90f1 commit 6670543

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

Overview.src.html

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,16 @@ <h3 id="doctype">The Doctype</h3>
240240
that the browser renders the page in standards mode. The doctype has no
241241
other purpose. <span data-anolis-ref>DOCTYPE</span>
242242

243+
<p>In HTML4, it was possible to use doctypes that were syntactically correct
244+
but still trigger quirks mode (e.g.
245+
<code class=bad>&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"></code>, without the URL).
246+
247+
<p>If you were using no doctype or a quirky doctype and switch to a standards mode doctype,
248+
you will most likely run into differences between the modes. For example, in quirks mode,
249+
classes and IDs in Selectors are case-insensitive and CSS &lt;length>s do not require a unit.
250+
For more examples, please refer to
251+
<a href="http://www.cs.tut.fi/~jkorpela/quirks-mode.html"><cite>What happens in Quirks Mode?</cite></a>.
252+
243253
<p>The doctype declaration for the HTML syntax is <code>&lt;!DOCTYPE html></code> and is
244254
case-insensitive. Doctypes from earlier versions of
245255
HTML were longer because the HTML language was SGML-based and therefore
@@ -2545,6 +2555,7 @@ <h2 class="no-num" id="acknowledgments">Acknowledgments</h2>
25452555
&#x7FBD;&#x7530;&#x91CE;&#x592A;&#x5DF3; (Futomi Hatano),
25462556
Gordon P. Hemsley,
25472557
Henri Sivonen,
2558+
Jacob Palme,
25482559
James Graham,
25492560
Jens O. Meiert,
25502561
Jeremy Keith,

Overview.whatwg.html

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,16 @@ <h3 id="doctype"><span class="secno">2.2 </span>The Doctype</h3>
273273
that the browser renders the page in standards mode. The doctype has no
274274
other purpose. <a href="#refsDOCTYPE">[DOCTYPE]</a>
275275

276+
<p>In HTML4, it was possible to use doctypes that were syntactically correct
277+
but still trigger quirks mode (e.g.
278+
<code class="bad">&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"&gt;</code>, without the URL).
279+
280+
<p>If you were using no doctype or a quirky doctype and switch to a standards mode doctype,
281+
you will most likely run into differences between the modes. For example, in quirks mode,
282+
classes and IDs in Selectors are case-insensitive and CSS &lt;length&gt;s do not require a unit.
283+
For more examples, please refer to
284+
<a href="http://www.cs.tut.fi/~jkorpela/quirks-mode.html"><cite>What happens in Quirks Mode?</cite></a>.
285+
276286
<p>The doctype declaration for the HTML syntax is <code>&lt;!DOCTYPE html&gt;</code> and is
277287
case-insensitive. Doctypes from earlier versions of
278288
HTML were longer because the HTML language was SGML-based and therefore
@@ -2360,6 +2370,7 @@ <h2 class="no-num" id="acknowledgments">Acknowledgments</h2>
23602370
羽田野太巳 (Futomi Hatano),
23612371
Gordon P. Hemsley,
23622372
Henri Sivonen,
2373+
Jacob Palme,
23632374
James Graham,
23642375
Jens O. Meiert,
23652376
Jeremy Keith,

0 commit comments

Comments
 (0)