groundh0g / fauxcabulary.org

An attempt to move my WordPress-based pun-a-day site to GitHub Pages (using jekyll-bootstrap).
Other
0 stars 0 forks source link

Strange search behavior ... #8

Closed groundh0g closed 9 years ago

groundh0g commented 9 years ago

Most searches work just fine. Try "to". Javascript error. Cannot find replace method.

groundh0g commented 9 years ago

Aha! Looks like the issue is with the matches, not the search. In the search for "a", the following error popped up in the console.

Uncaught Error: Syntax error, unrecognized expression: #divTermLEVI'S .headTerm

So, I'm guessing that the term has HTML encoded characters and the div id is generated as a string literal from that data. #divTermLEVI'S is obviously not a valid DOM element name.

groundh0g commented 9 years ago

Quickly eye-balled the terms on file system to see which might cause problems.

Posted:

In the _queue:

Not sure that last one will be an issue. Need to test.

groundh0g commented 9 years ago

Fixed locally. Will push to server in a bit.

These edge cases have been covered now, but "è" is the only accented character that I'm explicitly checking for, so this issue is likely to crop up if I continue to use non-english terms.