Skip to content

Commit

Permalink
Mention that initial about:blank also results in quirks
Browse files Browse the repository at this point in the history
Fixes #272.
  • Loading branch information
annevk committed Jul 5, 2016
1 parent 11725ec commit 42f01fb
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 25 deletions.
16 changes: 8 additions & 8 deletions dom.bs
Original file line number Diff line number Diff line change
Expand Up @@ -4579,14 +4579,14 @@ is "<code>quirks</code>", and
<a for=Document>mode</a> is "<code>limited-quirks</code>".

<div class="note no-backref">
<p>The mode is only ever changed from the default if the <a>document</a> is created by
the <a>HTML parser</a>, based on the presence, absence, or value of the DOCTYPE string.
[[!HTML]]

<p><a>No-quirks mode</a> was originally known as "standards mode"
and <a>limited-quirks mode</a> was once known as "almost standards mode". They have been
renamed because their details are now defined by standards. (And because Ian Hickson
vetoed their original names on the basis that they are nonsensical.)
<p>The <a for=Document>mode</a> is only ever changed from the default for <a>documents</a> created
by the <a>HTML parser</a> based on the presence, absence, or value of the DOCTYPE string, and by a
new <a spec=html>browsing context</a> (initial "<code>about:blank</code>"). [[!HTML]]

<p><a>No-quirks mode</a> was originally known as "standards mode" and <a>limited-quirks mode</a>
was once known as "almost standards mode". They have been renamed because their details are now
defined by standards. (And because Ian Hickson vetoed their original names on the basis that they
are nonsensical.)
</div>

<p>A <a>document</a>'s <a>get the parent</a> algorithm, given an <var>event</var>, returns
Expand Down
35 changes: 18 additions & 17 deletions dom.html
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
<p data-fill-with="logo"><a class="logo" href="https://whatwg.org/"> <img alt="WHATWG" height="100" src="https://resources.whatwg.org/logo-dom.svg"> </a> </p>
<hgroup>
<h1 class="p-name no-ref allcaps" id="title">DOM</h1>
<h2 class="no-num no-toc no-ref heading settled" id="subtitle"><span class="content">Living Standard — Last Updated <time class="dt-updated" datetime="2016-06-16">16 June 2016</time></span></h2>
<h2 class="no-num no-toc no-ref heading settled" id="subtitle"><span class="content">Living Standard — Last Updated <time class="dt-updated" datetime="2016-07-05">5 July 2016</time></span></h2>
</hgroup>
<div data-fill-with="spec-metadata">
<dl>
Expand Down Expand Up @@ -2667,12 +2667,12 @@ <h3 class="heading settled" data-level="4.5" id="interface-document"><span class
<p>A <a data-link-type="dfn" href="#concept-document">document</a> is said to be an <dfn data-dfn-type="dfn" data-export="" id="xml-document">XML document<a class="self-link" href="#xml-document"></a></dfn> if its <a data-link-type="dfn" href="#concept-document-type">type</a> is "<code>xml</code>", and an <dfn data-dfn-type="dfn" data-export="" id="html-document">HTML document<a class="self-link" href="#html-document"></a></dfn> otherwise. Whether a <a data-link-type="dfn" href="#concept-document">document</a> is an <a data-link-type="dfn" href="#html-document">HTML document</a> or an <a data-link-type="dfn" href="#xml-document">XML document</a> affects the behavior of certain APIs.</p>
<p>A <a data-link-type="dfn" href="#concept-document">document</a> is said to be in <dfn data-dfn-type="dfn" data-export="" id="concept-document-no-quirks">no-quirks mode<a class="self-link" href="#concept-document-no-quirks"></a></dfn> if its <a data-link-type="dfn" href="#concept-document-mode">mode</a> is "<code>no-quirks</code>", <dfn data-dfn-type="dfn" data-export="" id="concept-document-quirks">quirks mode<a class="self-link" href="#concept-document-quirks"></a></dfn> if its <a data-link-type="dfn" href="#concept-document-mode">mode</a> is "<code>quirks</code>", and <dfn data-dfn-type="dfn" data-export="" id="concept-document-limited-quirks">limited-quirks mode<a class="self-link" href="#concept-document-limited-quirks"></a></dfn> if its <a data-link-type="dfn" href="#concept-document-mode">mode</a> is "<code>limited-quirks</code>".</p>
<div class="note no-backref" role="note">
<p>The mode is only ever changed from the default if the <a data-link-type="dfn" href="#concept-document">document</a> is created by
the <a data-link-type="dfn" href="https://html.spec.whatwg.org/multipage/syntax.html#html-parser">HTML parser</a>, based on the presence, absence, or value of the DOCTYPE string. <a data-link-type="biblio" href="#biblio-html">[HTML]</a> </p>
<p><a data-link-type="dfn" href="#concept-document-no-quirks">No-quirks mode</a> was originally known as "standards mode"
and <a data-link-type="dfn" href="#concept-document-limited-quirks">limited-quirks mode</a> was once known as "almost standards mode". They have been
renamed because their details are now defined by standards. (And because Ian Hickson
vetoed their original names on the basis that they are nonsensical.) </p>
<p>The <a data-link-type="dfn" href="#concept-document-mode">mode</a> is only ever changed from the default for <a data-link-type="dfn" href="#concept-document">documents</a> created
by the <a data-link-type="dfn" href="https://html.spec.whatwg.org/multipage/syntax.html#html-parser">HTML parser</a> based on the presence, absence, or value of the DOCTYPE string, and by a
new <a data-link-type="dfn" href="https://html.spec.whatwg.org/multipage/browsers.html#browsing-context">browsing context</a> (initial "<code>about:blank</code>"). <a data-link-type="biblio" href="#biblio-html">[HTML]</a> </p>
<p><a data-link-type="dfn" href="#concept-document-no-quirks">No-quirks mode</a> was originally known as "standards mode" and <a data-link-type="dfn" href="#concept-document-limited-quirks">limited-quirks mode</a> was once known as "almost standards mode". They have been renamed because their details are now
defined by standards. (And because Ian Hickson vetoed their original names on the basis that they
are nonsensical.) </p>
</div>
<p>A <a data-link-type="dfn" href="#concept-document">document</a>’s <a data-link-type="dfn" href="#get-the-parent">get the parent</a> algorithm, given an <var>event</var>, returns
null if <var>event</var>’s <code for="Event">type</code> attribute value is "<code>load</code>" or <a data-link-type="dfn" href="#concept-document">document</a> does not have a <a data-link-type="dfn" href="https://html.spec.whatwg.org/multipage/browsers.html#concept-document-bc">browsing context</a>, and the <a data-link-type="dfn" href="#concept-document">document</a>’s <a data-link-type="dfn" href="https://html.spec.whatwg.org/multipage/browsers.html#concept-document-window">associated</a> <code class="idl"><a data-link-type="idl" href="https://html.spec.whatwg.org/multipage/browsers.html#window">Window</a></code> object otherwise. </p>
Expand Down Expand Up @@ -6308,6 +6308,7 @@ <h3 class="no-num no-ref heading settled" id="index-defined-elsewhere"><span cla
<li><a href="https://html.spec.whatwg.org/multipage/embedded-content.html#trackevent">TrackEvent</a>
<li><a href="https://html.spec.whatwg.org/multipage/browsers.html#window">Window</a>
<li><a href="https://html.spec.whatwg.org/multipage/semantics.html#the-body-element">body</a>
<li><a href="https://html.spec.whatwg.org/multipage/browsers.html#browsing-context">browsing context</a>
<li><a href="https://html.spec.whatwg.org/multipage/scripting.html#concept-custom-element-definition-constructor">constructor</a>
<li><a href="https://html.spec.whatwg.org/multipage/scripting.html#customized-built-in-element">customized built-in element</a>
<li><a href="https://html.spec.whatwg.org/multipage/scripting.html#enqueue-a-custom-element-callback-reaction">enqueue a custom element callback reaction</a>
Expand Down Expand Up @@ -6375,11 +6376,11 @@ <h3 class="no-num no-ref heading settled" id="normative"><span class="content">N
<dt id="biblio-css-transitions-1">[CSS-TRANSITIONS-1]
<dd>CSS Transitions Module Level 1 URL: <a href="https://drafts.csswg.org/css-transitions-1/">https://drafts.csswg.org/css-transitions-1/</a>
<dt id="biblio-css3-animations">[CSS3-ANIMATIONS]
<dd>Dean Jackson; et al. <a href="http://www.w3.org/TR/css3-animations/">CSS Animations</a>. 19 February 2013. WD. URL: <a href="http://www.w3.org/TR/css3-animations/">http://www.w3.org/TR/css3-animations/</a>
<dd>Dean Jackson; et al. <a href="https://www.w3.org/TR/css3-animations/">CSS Animations</a>. 19 February 2013. WD. URL: <a href="https://www.w3.org/TR/css3-animations/">https://www.w3.org/TR/css3-animations/</a>
<dt id="biblio-css3-transitions">[CSS3-TRANSITIONS]
<dd>Dean Jackson; et al. <a href="http://dev.w3.org/csswg/css-transitions/">CSS Transitions</a>. 19 November 2013. WD. URL: <a href="http://dev.w3.org/csswg/css-transitions/">http://dev.w3.org/csswg/css-transitions/</a>
<dt id="biblio-device-orientation">[DEVICE-ORIENTATION]
<dd>Stephen Block; Andrei Popescu. <a href="http://www.w3.org/TR/orientation-event/">DeviceOrientation Event Specification</a>. 1 December 2011. LCWD. URL: <a href="http://www.w3.org/TR/orientation-event/">http://www.w3.org/TR/orientation-event/</a>
<dd>Stephen Block; Andrei Popescu. <a href="https://www.w3.org/TR/orientation-event/">DeviceOrientation Event Specification</a>. 1 December 2011. LCWD. URL: <a href="https://www.w3.org/TR/orientation-event/">https://www.w3.org/TR/orientation-event/</a>
<dt id="biblio-ecmascript">[ECMASCRIPT]
<dd><a href="https://tc39.github.io/ecma262/">ECMAScript Language Specification</a>. URL: <a href="https://tc39.github.io/ecma262/">https://tc39.github.io/ecma262/</a>
<dt id="biblio-encoding">[ENCODING]
Expand All @@ -6391,11 +6392,11 @@ <h3 class="no-num no-ref heading settled" id="normative"><span class="content">N
<dt id="biblio-selectors-4">[SELECTORS-4]
<dd>Selectors Level 4 URL: <a href="https://drafts.csswg.org/selectors-4/">https://drafts.csswg.org/selectors-4/</a>
<dt id="biblio-selectors4">[SELECTORS4]
<dd>Elika Etemad; Tab Atkins Jr.. <a href="http://www.w3.org/TR/selectors4/">Selectors Level 4</a>. 2 May 2013. WD. URL: <a href="http://www.w3.org/TR/selectors4/">http://www.w3.org/TR/selectors4/</a>
<dd>Elika Etemad; Tab Atkins Jr.. <a href="https://www.w3.org/TR/selectors4/">Selectors Level 4</a>. 2 May 2013. WD. URL: <a href="https://www.w3.org/TR/selectors4/">https://www.w3.org/TR/selectors4/</a>
<dt id="biblio-service-workers">[SERVICE-WORKERS]
<dd>Alex Russell; Jungkee Song; Jake Archibald. <a href="https://slightlyoff.github.io/ServiceWorker/spec/service_worker/">Service Workers</a>. 25 June 2015. WD. URL: <a href="https://slightlyoff.github.io/ServiceWorker/spec/service_worker/">https://slightlyoff.github.io/ServiceWorker/spec/service_worker/</a>
<dt id="biblio-svg">[SVG]
<dd>Jon Ferraiolo. <a href="http://www.w3.org/TR/SVG/">Scalable Vector Graphics (SVG) 1.0 Specification</a>. 4 September 2001. REC. URL: <a href="http://www.w3.org/TR/SVG/">http://www.w3.org/TR/SVG/</a>
<dd>Jon Ferraiolo. <a href="https://www.w3.org/TR/SVG/">Scalable Vector Graphics (SVG) 1.0 Specification</a>. 4 September 2001. REC. URL: <a href="https://www.w3.org/TR/SVG/">https://www.w3.org/TR/SVG/</a>
<dt id="biblio-touch-events">[TOUCH-EVENTS]
<dd>Doug Schepers; et al. <a href="http://dvcs.w3.org/hg/webevents/raw-file/v1/touchevents.html">Touch Events</a>. 10 October 2013. REC. URL: <a href="http://dvcs.w3.org/hg/webevents/raw-file/v1/touchevents.html">http://dvcs.w3.org/hg/webevents/raw-file/v1/touchevents.html</a>
<dt id="biblio-uievents">[UIEVENTS]
Expand All @@ -6409,28 +6410,28 @@ <h3 class="no-num no-ref heading settled" id="normative"><span class="content">N
<dt id="biblio-xhr">[XHR]
<dd>Anne van Kesteren. <a href="https://xhr.spec.whatwg.org/">XMLHttpRequest Standard</a>. Living Standard. URL: <a href="https://xhr.spec.whatwg.org/">https://xhr.spec.whatwg.org/</a>
<dt id="biblio-xml">[XML]
<dd>Tim Bray; et al. <a href="http://www.w3.org/TR/xml">Extensible Markup Language (XML) 1.0 (Fifth Edition)</a>. 26 November 2008. REC. URL: <a href="http://www.w3.org/TR/xml">http://www.w3.org/TR/xml</a>
<dd>Tim Bray; et al. <a href="https://www.w3.org/TR/xml">Extensible Markup Language (XML) 1.0 (Fifth Edition)</a>. 26 November 2008. REC. URL: <a href="https://www.w3.org/TR/xml">https://www.w3.org/TR/xml</a>
<dt id="biblio-xml-names">[XML-NAMES]
<dd>Tim Bray; et al. <a href="http://www.w3.org/TR/xml-names">Namespaces in XML 1.0 (Third Edition)</a>. 8 December 2009. REC. URL: <a href="http://www.w3.org/TR/xml-names">http://www.w3.org/TR/xml-names</a>
<dd>Tim Bray; et al. <a href="https://www.w3.org/TR/xml-names">Namespaces in XML 1.0 (Third Edition)</a>. 8 December 2009. REC. URL: <a href="https://www.w3.org/TR/xml-names">https://www.w3.org/TR/xml-names</a>
</dl>
<h3 class="no-num no-ref heading settled" id="informative"><span class="content">Informative References</span><a class="self-link" href="#informative"></a></h3>
<dl>
<dt id="biblio-cssom-view">[CSSOM-VIEW]
<dd>Simon Pieters. <a href="https://drafts.csswg.org/cssom-view/">CSSOM View Module</a>. 17 March 2016. WD. URL: <a href="https://drafts.csswg.org/cssom-view/">https://drafts.csswg.org/cssom-view/</a>
<dt id="biblio-dom-level-2-traversal-range">[DOM-Level-2-Traversal-Range]
<dd>Joseph Kesselman; et al. <a href="http://www.w3.org/TR/DOM-Level-2-Traversal-Range/">Document Object Model (DOM) Level 2 Traversal and Range Specification</a>. 13 November 2000. REC. URL: <a href="http://www.w3.org/TR/DOM-Level-2-Traversal-Range/">http://www.w3.org/TR/DOM-Level-2-Traversal-Range/</a>
<dd>Joseph Kesselman; et al. <a href="https://www.w3.org/TR/DOM-Level-2-Traversal-Range/">Document Object Model (DOM) Level 2 Traversal and Range Specification</a>. 13 November 2000. REC. URL: <a href="https://www.w3.org/TR/DOM-Level-2-Traversal-Range/">https://www.w3.org/TR/DOM-Level-2-Traversal-Range/</a>
<dt id="biblio-dom-level-3-core">[DOM-Level-3-Core]
<dd>Arnaud Le Hors; et al. <a href="http://www.w3.org/TR/DOM-Level-3-Core/">Document Object Model (DOM) Level 3 Core Specification</a>. 7 April 2004. REC. URL: <a href="http://www.w3.org/TR/DOM-Level-3-Core/">http://www.w3.org/TR/DOM-Level-3-Core/</a>
<dd>Arnaud Le Hors; et al. <a href="https://www.w3.org/TR/DOM-Level-3-Core/">Document Object Model (DOM) Level 3 Core Specification</a>. 7 April 2004. REC. URL: <a href="https://www.w3.org/TR/DOM-Level-3-Core/">https://www.w3.org/TR/DOM-Level-3-Core/</a>
<dt id="biblio-dom-parsing">[DOM-Parsing]
<dd>Travis Leithead. <a href="https://w3c.github.io/DOM-Parsing/">DOM Parsing and Serialization</a>. 17 May 2016. WD. URL: <a href="https://w3c.github.io/DOM-Parsing/">https://w3c.github.io/DOM-Parsing/</a>
<dt id="biblio-elementtraversal">[ELEMENTTRAVERSAL]
<dd>Doug Schepers; Robin Berjon. <a href="http://www.w3.org/TR/ElementTraversal/">Element Traversal Specification</a>. 22 December 2008. REC. URL: <a href="http://www.w3.org/TR/ElementTraversal/">http://www.w3.org/TR/ElementTraversal/</a>
<dd>Doug Schepers; Robin Berjon. <a href="https://www.w3.org/TR/ElementTraversal/">Element Traversal Specification</a>. 22 December 2008. REC. URL: <a href="https://www.w3.org/TR/ElementTraversal/">https://www.w3.org/TR/ElementTraversal/</a>
<dt id="biblio-indexeddb">[INDEXEDDB]
<dd>Nikunj Mehta; et al. <a href="http://dvcs.w3.org/hg/IndexedDB/raw-file/tip/Overview.html">Indexed Database API</a>. 8 January 2015. REC. URL: <a href="http://dvcs.w3.org/hg/IndexedDB/raw-file/tip/Overview.html">http://dvcs.w3.org/hg/IndexedDB/raw-file/tip/Overview.html</a>
<dt id="biblio-selectors-api2">[SELECTORS-API2]
<dd>Lachlan Hunt. <a href="http://dev.w3.org/2006/webapi/selectors-api2/">Selectors API Level 2</a>. 17 October 2013. NOTE. URL: <a href="http://dev.w3.org/2006/webapi/selectors-api2/">http://dev.w3.org/2006/webapi/selectors-api2/</a>
<dt id="biblio-uievents-20031107">[UIEVENTS-20031107]
<dd>Philippe Le Hégaret; Tim Pixley. <a href="http://www.w3.org/TR/2003/NOTE-DOM-Level-3-Events-20031107">Document Object Model (DOM) Level 3 Events Specification</a>. 7 November 2003. NOTE. URL: <a href="http://www.w3.org/TR/2003/NOTE-DOM-Level-3-Events-20031107">http://www.w3.org/TR/2003/NOTE-DOM-Level-3-Events-20031107</a>
<dd>Philippe Le Hégaret; Tim Pixley. <a href="https://www.w3.org/TR/2003/NOTE-DOM-Level-3-Events-20031107">Document Object Model (DOM) Level 3 Events Specification</a>. 7 November 2003. NOTE. URL: <a href="https://www.w3.org/TR/2003/NOTE-DOM-Level-3-Events-20031107">https://www.w3.org/TR/2003/NOTE-DOM-Level-3-Events-20031107</a>
</dl>
<h2 class="no-num no-ref heading settled" id="idl-index"><span class="content">IDL Index</span><a class="self-link" href="#idl-index"></a></h2>
<pre class="idl def">[<a class="nv" href="#dom-event-event">Constructor</a>(<span class="kt">DOMString</span> <a class="nv" href="#dom-event-event-type-eventinitdict-type">type</a>, <span class="kt">optional</span> <a class="n" data-link-type="idl-name" href="#dictdef-eventinit">EventInit</a> <a class="nv" href="#dom-event-event-type-eventinitdict-eventinitdict">eventInitDict</a>),
Expand Down

0 comments on commit 42f01fb

Please sign in to comment.