Skip to content

Commit 4eae34a

Browse files
committed
Add 'for example' to the example
1 parent 8b855b8 commit 4eae34a

2 files changed

Lines changed: 7 additions & 6 deletions

File tree

selectors4/Overview.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1230,17 +1230,17 @@ <h3 id=scoping><span class=secno>3.3. </span> Scoped Selectors</h3>
12301230
href="#scope-pseudo"><code>:scope</code></a> pseudo-class.
12311231

12321232
<div class=example>
1233-
<p> The <code>document.querySelector()</code> function defined in <a
1234-
href="#SELECTORS-API2"
1233+
<p> For example, the <code>document.querySelector()</code> function
1234+
defined in <a href="#SELECTORS-API2"
12351235
rel=biblioentry>[SELECTORS-API2]<!--{{SELECTORS-API2}}--></a> allows the
12361236
author to define a <a
12371237
href="#scope-constrained"><i>scope-constrained</i></a> selector.
12381238

12391239
<p> On the other hand, the <code>document.find()</code> function defined
12401240
in <a href="#SELECTORS-API2"
12411241
rel=biblioentry>[SELECTORS-API2]<!--{{SELECTORS-API2}}--></a> and the
1242-
selectors within a scoped stylesheet, defined in <a href="#HTML5"
1243-
rel=biblioentry>[HTML5]<!--{{HTML5}}--></a>, define <a
1242+
selectors within an <a href="#HTML5"
1243+
rel=biblioentry>[HTML5]<!--{{HTML5}}--></a> scoped stylesheet, define <a
12441244
href="#scope-contained"><i>scope-contained</i></a> selectors.
12451245
</div>
12461246

selectors4/Overview.src.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -603,12 +603,13 @@ <h3 id="scoping">
603603

604604
<div class='example'>
605605
<p>
606-
The <code>document.querySelector()</code> function defined in [[SELECTORS-API2]]
606+
For example,
607+
the <code>document.querySelector()</code> function defined in [[SELECTORS-API2]]
607608
allows the author to define a <i>scope-constrained</i> selector.
608609

609610
<p>
610611
On the other hand, the <code>document.find()</code> function defined in [[SELECTORS-API2]]
611-
and the selectors within a scoped stylesheet, defined in [[HTML5]],
612+
and the selectors within an [[HTML5]] scoped stylesheet,
612613
define <i>scope-contained</i> selectors.
613614
</div>
614615

0 commit comments

Comments
 (0)