Skip to content

Commit 3b4099b

Browse files
committed
[css-highlight-api] Bikeshed updates and fixes
1 parent 771394a commit 3b4099b

File tree

1 file changed

+18
-7
lines changed

1 file changed

+18
-7
lines changed

css-highlight-api-1/Overview.bs

+18-7
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ Complain About: accidental-2119 yes
4747
<pre class=link-defaults>
4848
spec:css-color-4; type:property; text:color
4949
spec:css-pseudo-4; type:dfn; text:highlight overlay
50+
spec:dom; type:dfn; text:range
51+
spec:css-values-4; type:dfn; text:identifier
5052
</pre>
5153

5254
<style>
@@ -194,7 +196,7 @@ Creating Custom Highlights</h3>
194196
<li>
195197
For each |range| of {{initialRanges}},
196198
let |rangeArg| be the result of [=converted to an ECMAScript value|converting=] |range| to an ECMAScript value,
197-
then run [[webidl#es-add-delete|the steps for a built-in setlike add function]],
199+
then run [[webidl#es-set-add|the steps for a built-in setlike add function]],
198200
with |highlight| as the <code>this</code> value,
199201
and |rangeArg| as the argument.
200202
<li>
@@ -233,7 +235,7 @@ Registering Custom Highlights</h3>
233235
To [=register=] a [=custom highlight=],
234236
invoke the <code>set</code> method of the [=highlight registry=]
235237
which will run [[webidl#es-map-set|the steps for a built-in maplike set function]],
236-
with the [=context object=] as the <code>this</code> value,
238+
with the [=highlight registry=] as the <code>this</code> value,
237239
the passed-in [=custom highlight name=] as <var ignore>keyArg</var>,
238240
and the passed-in highlight as <var ignore>valueArg</var>.
239241

@@ -582,20 +584,29 @@ Event Handling</h2>
582584
or should that be added to pseudo-elements in general?
583585

584586
<div class=non-normative>
585-
<h2 class="no-num" id=priv-sec>
586-
Appendix A. Privacy and Security Considerations</h2>
587+
<h2 class="no-num" id=priv>
588+
Appendix A. Privacy Considerations</h2>
587589

588590
<em>This section is non-normative</em>.
589591

590-
This specification is not thought to introduce any new security or privacy concern.
592+
This specification is not thought to introduce any new privacy concern.
593+
Anyone suspecting that this is not accurate is encouraged
594+
to get in touch with the CSS Working Group or the co-editors.
595+
596+
<h2 class="no-num" id=sec>
597+
Appendix B. Security Considerations</h2>
598+
599+
<em>This section is non-normative</em>.
600+
601+
This specification is not thought to introduce any new security concern.
591602
Anyone suspecting that this is not accurate is encouraged
592603
to get in touch with the CSS Working Group or the co-editors.
593604

594605
</div>
595606

596607
<div class=non-normative>
597608
<h2 class="no-num" id="credits">
598-
Appendix B. Acknowledgements</h2>
609+
Appendix C. Acknowledgements</h2>
599610

600611
<em>This section is non-normative</em>.
601612

@@ -604,7 +615,7 @@ Appendix B. Acknowledgements</h2>
604615

605616
<div class=non-normative>
606617
<h2 class="no-num" id="changes">
607-
Appendix C. Changes</h2>
618+
Appendix D. Changes</h2>
608619

609620
<em>This section is non-normative</em>.
610621

0 commit comments

Comments
 (0)