Skip to content

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

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

[css-highlight-api] Remove redundant add method from HighlightRegistry interface#6092
sanketj merged 1 commit intow3c:mainfrom
sanketj:clarify_highlightregistry_add

Conversation

@sanketj
Copy link
Copy Markdown
Member

@sanketj sanketj commented Mar 10, 2021

[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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants