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

findText: searching for text that does not exist within long text freezes the browser #470

Open
mccarlosen opened this issue Jun 2, 2021 · 5 comments

Comments

@mccarlosen
Copy link

var searchTerm = search.inputSearch.value
while (search.range.findText(searchTerm, optionsFindText)) {
      window.Spruce.store('searchStore').matches++
      search.searchResultApplier.applyToRange(search.range)
      search.range.collapse(false)
}

Demo

@abrehamgezahegn
Copy link

Hey @mccarlosen have you found a fix for this?

@mccarlosen
Copy link
Author

Hi @abrehamgezahegn sorry, I haven't found any solution...

I have found other things: When there is a long text, rangy consumes a lot of memory.

@abrehamgezahegn
Copy link

abrehamgezahegn commented Aug 10, 2022 via email

@abrehamgezahegn
Copy link

abrehamgezahegn commented Aug 10, 2022 via email

@abrehamgezahegn
Copy link

@timdown anything we can do to fix his issue?

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

2 participants