Skip to content

[css-highlight-api] Remove redundant add method from HighlightRegistry interface - #6092

Merged
sanketj merged 1 commit into
w3c:mainfrom
sanketj:clarify_highlightregistry_add
Mar 10, 2021
Merged

sanketj merged 1 commit into
w3c:mainfrom
sanketj:clarify_highlightregistry_add

Conversation

@sanketj

@sanketj sanketj commented Mar 10, 2021

Copy link
Copy Markdown
Member

[css-highlight-api] Remove redundant add method from HighlightRegistry interface

Since HighlightRegistry is setlike, it gets its add method from the setlike interface. This method just needs to be implemented with some special rules, as defined in the highlight-api spec. We need not define an explicit add method on HighlightRegistry - this is redundant and confusing to read.

@sanketj
sanketj requested a review from frivoal March 10, 2021 21:14
@sanketj sanketj changed the title [css-highlight-api] Remove redundant add method from HighlightRegistry spec [css-highlight-api] Remove redundant add method from HighlightRegistry interface definition Mar 10, 2021
@sanketj sanketj changed the title [css-highlight-api] Remove redundant add method from HighlightRegistry interface definition [css-highlight-api] Remove redundant add method from HighlightRegistry interface Mar 10, 2021
@sanketj
sanketj merged commit 521c913 into w3c:main Mar 10, 2021
@frivoal frivoal added the Closed Accepted by Editor Discretion See description in bin/issuegen.pl label Dec 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Closed Accepted by Editor Discretion See description in bin/issuegen.pl

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants