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

Clarify relationships with other specs #12

Closed
js-choi opened this issue Mar 13, 2018 · 4 comments
Closed

Clarify relationships with other specs #12

js-choi opened this issue Mar 13, 2018 · 4 comments

Comments

@js-choi
Copy link

js-choi commented Mar 13, 2018

It’s wonderful to see concrete work being done in this space.

As an extension of #11, which is about whatwg/html#3539, I think it would also be good to add clarification about the relationships that this API has with the following prior art, particularly with the first issue below:

@domenic
Copy link
Contributor

domenic commented Mar 14, 2018

I'm not sure many, if any of these are related. Most of them seem to be about generic text or range processing, or just ideas that are not implemented. Could you explain why you think they would be related?

@js-choi
Copy link
Author

js-choi commented Mar 14, 2018

On a second reading, I agree; they are not directly related; they are related only insofar that they might support custom searching of text from the DOM. I had been most concerned about whatwg/html#2858, but it had already been linked. Closing.

@js-choi js-choi closed this as completed Mar 14, 2018
@js-choi
Copy link
Author

js-choi commented Mar 14, 2018

Eventually, customization of the fuzzy text-matching rules that a UA uses (e.g., code-point normalization, case folding, other folding like curly/smart-quote folding, locale-specific customization) might be configurable from this API, in which case several of these prior initiatives might become more relevant.

@aphillips
Copy link

I agree that describing total support for all manner of Unicode normalization and find optimization is a good non-goal.

I suspect that this is missing the point, though. It isn't the customization of find() that is likely at issue but rather describing the actual options available. Most browser find commands (all of the ones I know of) have at least a "match case" option. That would affect the API of find-in-page. If other options are provided, they should be exposed in an orderly, forward-looking way. Saying what "match case" actually means might be an implementation detail.

The StringSearch document mentioned above is not wholly abandoned. But finishing CharmodNorm has been our higher priority. FindText is, to my understanding, moribund. Eventually it would be "nice" if some of these issues were dealt with (Unicode complexity does exist and does affect the outcome of a find, even if the result is by omission). But we should be careful not to throw out describing actual options, should they exist.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants