Skip to content

Commit 91fb4c0

Browse files
committed
Editorial: remove unreachable null checks of adjusted insertion location result
1 parent f137d80 commit 91fb4c0

1 file changed

Lines changed: 7 additions & 12 deletions

File tree

source

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -127654,11 +127654,11 @@ dictionary <dfn dictionary>SanitizerConfig</dfn> {
127654127654
<li><p>Let <var>sanitizer</var> be the result of calling <span data-x="get a sanitizer instance
127655127655
from options">getting a sanitizer</span> from <var>options</var> given <var>safe</var>.</p></li>
127656127656

127657-
<li><p>Let <var>configuration</var> be <var>sanitizer</var>'s
127657+
<li><p>Let <var>sanitizerConfig</var> be <var>sanitizer</var>'s
127658127658
<span>configuration</span>.</p></li>
127659127659

127660127660
<li><p>If <var>safe</var> is true, then <span>remove unsafe</span> from
127661-
<var>configuration</var>.</p></li>
127661+
<var>sanitizerConfig</var>.</p></li>
127662127662

127663127663
<li><p>Let <var>scriptingMode</var> be <span data-x="scripting-mode-inert">Inert</span>.</p></li>
127664127664

@@ -127675,9 +127675,9 @@ dictionary <dfn dictionary>SanitizerConfig</dfn> {
127675127675
</li>
127676127676

127677127677
<li>
127678-
<p>Let <var>fragment</var> be the result of <span data-x="HTML fragment parsing
127679-
algorithm">parsing a fragment</span> given <var>target</var>, <var>html</var>, true,
127680-
<var>scriptingMode</var>, <var>configuration</var>, and <var>safe</var>.</p>
127678+
<p>Let <var>fragment</var> be the result of invoking the <span>HTML fragment parsing
127679+
algorithm</span> given <var>target</var>, <var>html</var>, true, <var>scriptingMode</var>,
127680+
<var>sanitizerConfig</var>, and <var>safe</var>.</p>
127681127681

127682127682
<p class="note">Scripts in <var>fragment</var> will only execute once inserted into
127683127683
<var>target</var>.</p>
@@ -127804,7 +127804,7 @@ dictionary <dfn dictionary>SanitizerConfig</dfn> {
127804127804

127805127805
<li>
127806127806
<p>If <var>configuration</var>["<code data-x="dom-SanitizerConfig-elements">elements</code>"]
127807-
<span data-x="map exists">exists</span>, then: </p>
127807+
<span data-x="map exists">exists</span>: </p>
127808127808

127809127809
<ol>
127810127810
<li>
@@ -144489,8 +144489,7 @@ dictionary <dfn dictionary>StorageEventInit</dfn> : <span>EventInit</span> {
144489144489
<var>element</var>:</p>
144490144490

144491144491
<ol>
144492-
<li><p>Let the <var>insertionLocation</var> be the <span>adjusted insertion
144493-
location</span>.</p></li>
144492+
<li><p>Let <var>insertionLocation</var> be the <span>adjusted insertion location</span>.</p></li>
144494144493

144495144494
<li>
144496144495
<p>If the parser's <span>parser sanitizer configuration</span> is not null, then:</p>
@@ -144690,8 +144689,6 @@ dictionary <dfn dictionary>StorageEventInit</dfn> : <span>EventInit</span> {
144690144689

144691144690
<li><p>Let <var>insertionLocation</var> be the <span>adjusted insertion location</span>.</p></li>
144692144691

144693-
<li><p>If <var>insertionLocation</var> is null, then return.</p></li>
144694-
144695144692
<li>
144696144693
<p>If <var>insertionLocation</var> is in a <code>Document</code> node, then return.</p>
144697144694

@@ -144772,8 +144769,6 @@ document.body.appendChild(text);
144772144769
<li><p>Set <var>insertionLocation</var> to the <span>adjusted insertion location</span> given
144773144770
<var>insertionLocation</var>.</p></li>
144774144771

144775-
<li><p>If <var>insertionLocation</var> is null, then abort these steps.</p></li>
144776-
144777144772
<li><p>Let <var>comment</var> be a <code>Comment</code> node whose <code data-x="">data</code>
144778144773
attribute is set to <var>data</var> and whose <span>node document</span> is the same as that of
144779144774
the node in which the <var>insertionLocation</var> finds itself.</p></li>

0 commit comments

Comments
 (0)