Only use accumulated text that is not empty ("") · w3c/accname@fe3a05d (original) (raw)

Original file line number Diff line number Diff line change
@@ -271,7 +271,7 @@

Computation steps

271 271 <li id="step2B.ii.c">Append the <code>result</code>, with a space, to the <code>accumulated text</code>.</li>
272 272 </ol>
273 273 </li>
274 -<li id="step2B.iii">Return the <code>accumulated text</code>.</li>
274 +<li id="step2B.iii">Return the <code>accumulated text</code> if it is not the empty string ("").</li>
275 275 </ol>
276 276 </li>
277 277 </ul>
@@ -350,7 +350,7 @@

Computation steps

350 350 <li id="step2F.iii.c">Append the <code>result</code> to the <code>accumulated text</code>. </li>
351 351 </ol>
352 352 </li>
353 -<li id="step2F.iv">Return the <code>accumulated text</code>.</li>
353 +<li id="step2F.iv">Return the <code>accumulated text</code> if it is not the empty string ("").</li>
354 354 </ol>
355 355 <p><strong>Important</strong>: Each <a class="termref">node</a> in the subtree is consulted only once. If text has been collected from a descendant, but is referenced by another IDREF in some descendant node, then that second, or subsequent, reference is not followed. This is done to avoid infinite loops. </p>
356 356 <div><details>