Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Mar 10, 2021
Merged

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

merged 1 commit into from
Mar 10, 2021

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.

None yet

2 participants