KEMBAR78
[css-highlight-api] Remove redundant add method from HighlightRegistry interface by sanketj · Pull Request #6092 · w3c/csswg-drafts · GitHub
Skip to content

Conversation

@sanketj
Copy link
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