Skip to content

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