Typeface has a bug with word boundaries and special caracters(Unicode) - IE
We use regularly Typeface to apply a particular font to text on websites.
A bug happened: the regex engine splits the word "français" in "franç" and "ais". The split happened when the engine meet an accented caracter, UTF8 or Unicode.
The effect was invisible in many browsers, but in Internet Explorer, a space was inserted because the script created two distinct markups.
There is a solution! You just have to change line #289 of typeface.js to this:
var words = text.split(/\b(?=\X)/);
Et l'affaire est ketchup !
Credits: http://twitter.com/tousdan
Categories
All articles, Design, E-Commerce, Free stuff, Internal, Mobile, Web, Web Marketing,
Tags
Sparko, Montréal, java, JCCM, médias sociaux, twitter, Agence de développement web, apple, Entrepreneurs, Entrepreneurship, facebook, htaccess, la presse, marketing, médias, publicité, rewriteCond, social media, accents, accesnotaire.com,


Comments
No comments at this time
Write a comment