Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions css-highlight-api-1/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ Creating Custom Highlights</h3>
<li>
For each |range| of {{initialRanges}},
let |rangeArg| be the result of [=converted to an ECMAScript value|converting=] |range| to an ECMAScript value,
then run [[webidl#es-set-add|the steps for a built-in setlike add function]],
then run [[webidl#js-set-add|the steps for a built-in setlike add function]],
with |highlight| as the <code>this</code> value,
and |rangeArg| as the argument.
<li>
Expand Down Expand Up @@ -241,7 +241,7 @@ Registering Custom Highlights</h3>
<div algorithm="to register a custom highlight">
To [=register=] a [=custom highlight=],
invoke the <code>set</code> method of the [=highlight registry=]
which will run [[webidl#es-map-set|the steps for a built-in maplike set function]],
which will run [[webidl#js-map-set|the steps for a built-in maplike set function]],
with the [=highlight registry=] as the <code>this</code> value,
the passed-in [=custom highlight name=] as <var ignore>keyArg</var>,
and the passed-in highlight as <var ignore>valueArg</var>.
Expand Down