Skip to content

Commit d691979

Browse files
committed
Fix at least one conformance error
1 parent d383a4d commit d691979

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

source

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -115905,17 +115905,19 @@ console.log(document.url.hash); // '#foo:~:bar'
115905115905
<div class="note">
115906115906
<p>The basic premise of this algorithm is to walk all searchable text nodes within a block,
115907115907
collecting them into a list. The list is then concatenated into a single string in which we can
115908-
search, using the node list to determine offsets with a node so we can return a <span>range</span>.</p>
115908+
search, using the node list to determine offsets with a node so we can return a
115909+
<span>range</span>.</p>
115909115910

115910115911
<pre><code class="html">Collection breaks when we hit a block node, e.g. searching over this tree:
115911-
<div>
115912-
a<em>b</em>c<div>d</div>e
115913-
</div></code></pre>
115912+
&lt;div&gt;
115913+
a&lt;em&gt;b&lt;/em&gt;c&lt;div&gt;d&lt;/div&gt;e
115914+
&lt;/div&gt;</code></pre>
115914115915

115915115916
<p>Will perform a search on "<code data-x="">abc</code>", then on "<code data-x="">d</code>",
115916115917
then on "<code data-x="">e</code>".
115917115918

115918-
<p>Thus, <var>query</var> will only match text that is continuous (i.e., uninterrupted by a block-level container) within a single block-level container.</p>
115919+
<p>Thus, <var>query</var> will only match text that is continuous (i.e., uninterrupted by a
115920+
block-level container) within a single block-level container.</p>
115919115921
</div>
115920115922

115921115923
<ol>

0 commit comments

Comments
 (0)