Skip to content

Commit

Permalink
xref document.write; make the mock items' names consistent with those…
Browse files Browse the repository at this point in the history
… for elements
  • Loading branch information
zcorpan committed Jan 25, 2021
1 parent ff5c44f commit 565b295
Showing 1 changed file with 15 additions and 14 deletions.
29 changes: 15 additions & 14 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -111543,10 +111543,10 @@ document.body.appendChild(text);
<p>If <var>parser</var> already has an <span>active speculative HTML parser</span>, then
<span>stop the speculative HTML parser</span> for <var>parser</var>.</p>

<p class="note">This can happen when <code data-x="">document.write()</code> writes another
parser-blocking script. For simplicity, this specification always restarts speculative parsing,
but user agents can implement a more efficient strategy, so long as the end result is
equivalent.</p>
<p class="note">This can happen when <code data-x="dom-document-write">document.write()</code>
writes another parser-blocking script. For simplicity, this specification always restarts
speculative parsing, but user agents can implement a more efficient strategy, so long as the end
result is equivalent.</p>
</li>

<li><p>Let <var>speculativeParser</var> be a new <span>speculative HTML parser</span>, with the
Expand Down Expand Up @@ -111592,14 +111592,15 @@ document.body.appendChild(text);
<li><p>A <span>string</span> <dfn data-x="concept-mock-namespace">namespace</dfn>, corresponding
to an element's <span data-x="concept-element-namespace">namespace</span>.</p></li>

<li><p>A <span>string</span> <dfn data-x="concept-mock-localName">localName</dfn>, corresponding
to an element's <span data-x="concept-element-local-name">local name</span>.</p></li>
<li><p>A <span>string</span> <dfn data-x="concept-mock-local-name">local name</dfn>,
corresponding to an element's <span data-x="concept-element-local-name">local
name</span>.</p></li>

<li><p>A <span>list</span> <dfn data-x="concept-mock-attributes">attributes</dfn>, corresponding
to an element's <span>attribute list</span>.</p></li>
<li><p>A <span>list</span> <dfn data-x="concept-mock-attribute-list">attribute list</dfn>,
corresponding to an element's <span>attribute list</span>.</p></li>

<li><p>A <span>list</span> <dfn data-x="concept-mock-childNodes">childNodes</dfn>, corresponding
to an element's <span data-x="concept-tree-child">children</span>.</p></li>
<li><p>A <span>list</span> <dfn data-x="concept-mock-childern">children</dfn>, corresponding to
an element's <span data-x="concept-tree-child">children</span>.</p></li>
</ul>

<p>To <dfn>create a speculative mock element</dfn> given a <var>namespace</var>,
Expand All @@ -111611,13 +111612,13 @@ document.body.appendChild(text);
<li><p>Set <var>element</var>'s <span data-x="concept-mock-namespace">namespace</span> to
<var>namespace</var>.</p></li>

<li><p>Set <var>element</var>'s <span data-x="concept-mock-localName">localName</span> to
<li><p>Set <var>element</var>'s <span data-x="concept-mock-local-name">local name</span> to
<var>tagName</var>.</p></li>

<li><p>Set <var>element</var>'s <span data-x="concept-mock-attributes">attributes</span> to
<var>attributes</var>.</p></li>
<li><p>Set <var>element</var>'s <span data-x="concept-mock-attribute-list">attribute list</span>
to <var>attributes</var>.</p></li>

<li><p>Set <var>element</var>'s <span data-x="concept-mock-childNodes">childNodes</span> to a new
<li><p>Set <var>element</var>'s <span data-x="concept-mock-children">children</span> to a new
empty <span>list</span>.</p></li>

<li><p>Return <var>element</var>.</p></li>
Expand Down

0 comments on commit 565b295

Please sign in to comment.