diff options
| author | Jez Ng | 2012-01-26 05:31:14 -0500 | 
|---|---|---|
| committer | Jez Ng | 2012-01-26 13:18:51 -0500 | 
| commit | 10d7078eef52514ecf972ea53e1ad1a0646dca68 (patch) | |
| tree | b5b84a64f4a0794fbb2d29fafa7fad5833ccc8f2 /vimiumFrontend.js | |
| parent | 1e04eb8c3b57701206ddd65bf3b3292f0678e3e1 (diff) | |
| download | vimium-10d7078eef52514ecf972ea53e1ad1a0646dca68.tar.bz2 | |
Isolate zero-width spaces in <span>s.
Diffstat (limited to 'vimiumFrontend.js')
| -rw-r--r-- | vimiumFrontend.js | 5 | 
1 files changed, 3 insertions, 2 deletions
| diff --git a/vimiumFrontend.js b/vimiumFrontend.js index 65ac240c..d70c2009 100644 --- a/vimiumFrontend.js +++ b/vimiumFrontend.js @@ -973,8 +973,9 @@ function showFindModeHUDForQuery() {   * We need this so that the find mode HUD doesn't match its own searches.   */  function insertSpaces(query) { -  // ​ is a zero-width space -  return query.split("").join("​"); +  // ​ is a zero-width space. the <span>s are necessary because the zero-width space tends to interfere +  // with subsequent characters in the same text node. +  return query.split("").join("<span class='vimiumReset'>​</span>");  }  function enterFindMode() { | 
