@@ -7831,23 +7831,7 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
7831
7831
</ol>
7832
7832
</li>
7833
7833
7834
- <li><p>Let <var>id</var> be the empty string.</p></li>
7835
-
7836
- <li>
7837
- <p>If the given value:</p>
7838
-
7839
- <ul class="brief">
7840
- <li>has the same <span>root</span> as <span>this</span>, and</li>
7841
- <li>has an <code data-x="attr-id">id</code> attribute, and</li>
7842
- <li>is the first element in <span>this</span>'s <span>node tree</span> whose <span
7843
- data-x="concept-ID">ID</span> is the value of that <code data-x="attr-id">id</code>
7844
- attribute,</li>
7845
- </ul>
7846
-
7847
- <p>then set <var>id</var> to the given value's <span data-x="concept-ID">ID</span>.</p>
7848
- </li>
7849
-
7850
- <li><p>Set the content attribute's value for <span>this</span> to <var>id</var>.</p></li>
7834
+ <li><p>Set the content attribute's value for <span>this</span> to the empty string.</p></li>
7851
7835
7852
7836
<li><p>Set <span>this</span>'s <span>explicitly set <var>attr</var>-element</span> to a weak
7853
7837
reference to the given value.</p></li>
@@ -7994,52 +7978,19 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
7994
7978
</ol>
7995
7979
</li>
7996
7980
7997
- <li><p>Let <var>value</var> be an empty string.</p></li>
7981
+ <li><p>Set the content attribute's value for <span>this</span> to the empty string.</p></li>
7982
+
7983
+ <li><p>Let <var>elements</var> be an empty <span>list</span>.</p></li>
7998
7984
7999
7985
<li>
8000
7986
<p><span data-x="list iterate">For each</span> <var>element</var> in the given value:</p>
8001
7987
8002
7988
<ol>
8003
- <li>
8004
- <p>If <var>value</var> is empty and <var>elements</var> is non-empty, then:</p>
8005
-
8006
- <ol>
8007
- <li><p><span data-x="list append">Append</span> a weak reference to <var>element</var>
8008
- to <var>elements</var>.</p></li>
8009
-
8010
- <li><p><span>Continue</span>.</p></li>
8011
- </ol>
8012
- </li>
8013
-
8014
7989
<li><p><span data-x="list append">Append</span> a weak reference to <var>element</var> to
8015
7990
<var>elements</var>.</p></li>
8016
-
8017
- <li>
8018
- <p>If <var>element</var>:</p>
8019
-
8020
- <ul class="brief">
8021
- <li>does not have the same <span>root</span> as <span>this</span>, or</li>
8022
- <li>has no <code data-x="attr-id">id</code> attribute, or</li>
8023
- <li>is not the first element in <span>this</span>'s <span>node tree</span> whose <span
8024
- data-x="concept-ID">ID</span> is the value of that <code data-x="attr-id">id</code>
8025
- attribute,</li>
8026
- </ul>
8027
-
8028
- <p>then set <var>value</var> to the empty string, and <span>continue</span>.</p>
8029
- </li>
8030
-
8031
- <li><p>Let <var>id</var> be <var>element</var>'s <span
8032
- data-x="concept-ID">ID</span>.</p></li>
8033
-
8034
- <li><p>If <var>value</var> is not the empty string, then append U+0020 SPACE to
8035
- <var>value</var>.</p></li>
8036
-
8037
- <li><p>Append <var>id</var> to <var>value</var>.</p></li>
8038
7991
</ol>
8039
7992
</li>
8040
7993
8041
- <li><p>Set the content attribute's value for <span>this</span> to <var>value</var>.</p></li>
8042
-
8043
7994
<li><p>Set <span>this</span>'s <span>explicitly set <var>attr</var>-elements</span> to
8044
7995
<var>elements</var>.</p></li>
8045
7996
</ol>
0 commit comments