rogershen / chrome-regex-search

Other
267 stars 56 forks source link

Wrap the splitted text into a span #62

Open yousfiSaad opened 2 years ago

yousfiSaad commented 2 years ago

In some cases the creation of two nodes instead of one node (the text) changes the layout of the page, replacing the text node with a span the element containing the splitted text (text plus highlight-tag) avoids layout change

This PR fixes the issue https://github.com/rogershen/chrome-regex-search/issues/61