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

TextRange module's findText fix for text with non-breaking space. #405

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

rajanikanth05
Copy link

@rajanikanth05 rajanikanth05 commented Sep 7, 2016

Added fix to the TextRange module's findText method to search and match the text when the text in the document contains non-breaking space ( ).
For example, if the document has html "test match with findText", innerText would return "test match with findText". Even though the space looks normal whitespace between "test match", this is decoded character value of  . When we search for "test match", textRange.findText wouldn't find match.
According to the documentation, search should be performed on the visible text of the document but not on the decoded characters. Hence I made this change.

pburrows added a commit to pburrows/rangy-updated that referenced this pull request Jan 2, 2019
@pburrows
Copy link

pburrows commented Jan 2, 2019

merged PR here: pburrows/rangy-updated@854b8ad

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

Successfully merging this pull request may close these issues.

2 participants