New jQuery plugin: CSS3 text-overflow
Posted on Sunday June 28 2009
This new jQuery plugin implements a simplified version of the CSS3
text-overflow property, which allows stylesheet authors to specify
how and where text should be clipped. This is usually done by adding an
ellipsis character "…" or three dots at the point the
text should be cut off. Unfortunately, not all browser support this CSS
property, and this plugin was designed to simulate it when the property is
not natively available. The plugin is basically a rewrite of an
existing jQuery text-overflow plugin, with the goal of being
faster and more reliable (for example, one of the optimizations is that it
uses a binary search to find the correct clipping point, instead of a
linear search.)