[css-highlight-api] Remove redundant add method from HighlightRegistry interface by sanketj · Pull Request #6092 · w3c/csswg-drafts (original) (raw)

[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.