Skip to content

Commit d35283f

Browse files
committed
feat: Define the relation between a document’s type and prototype
1 parent 15966b3 commit d35283f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

source

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9313,6 +9313,12 @@ o.myself = o;</code></pre>
93139313
that can be set when the <code>Document</code> is created. If it is not explicitly set, then its
93149314
value is the empty string.</p>
93159315

9316+
<p>A <code>Document</code> instance with its <span data-x="concept-document-type">type</span>
9317+
set to "<code>html</code>" inherits from <code>HTMLDocument</code>.</p>
9318+
9319+
<p>A <code>Document</code> instance with its <span data-x="concept-document-type">type</span>
9320+
set to "<code data-x="">xml</code>" inherits from <dfn data-x-href="https://dom.spec.whatwg.org/#xmldocument">
9321+
<code>XMLDocument</code></dfn>.</p>
93169322

93179323
<h4>The <code>Document</code> object</h4>
93189324

0 commit comments

Comments
 (0)