title: text-overflow:ellipsis in Firefox 4? (and FF5)
body: <p>The <code>text-overflow:ellipsis;</code> CSS property must be one of the few things that Microsoft has done right for the web.</p>
  
  <p>All the other browsers now support it... except Firefox.</p>
  
  <p>The Firefox developers have been <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=312156" rel="noreferrer">arguing over it since 2005</a> but despite the obvious demand for it, they can't seem to actually bring themselves to implement it (even an experimental <code>-moz-</code> implementation would be sufficient).</p>
  
  <p>A few years ago, someone worked out a way to <a href="http://ernstdehaan.blogspot.com/2008/10/ellipsis-in-all-modern-browsers.html" rel="noreferrer">hack Firefox 3 to make it support an ellipsis</a>. The hack uses the <code>-moz-binding</code> feature to implement it using XUL. Quite a number of sites are now using this hack.</p>
  
  <p>The bad news? Firefox 4 is <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=546857" rel="noreferrer">removing the <code>-moz-binding</code> feature</a>, which means this hack won't work any more.</p>
  
  <p>So as soon as Firefox 4 is released (later this month, I hear), we're going to be back to the problem of having it not being able to support this feature.</p>
  
  <p>So my question is: Is there any other way around this? (I'm trying to avoid falling back to a Javascript solution if at all possible)</p>
  
  <p>[EDIT]<br />
  Lots of up-votes, so I'm obviously not the only one who wants to know, but I've got one answer so far which basically says 'use javascript'. I'm still hoping for a solution that will either not need JS at all, or at worst only use it as a fall-back where the CSS feature doesn't work. So I'm going to post a bounty on the question, on the off chance that someone, somewhere has found an answer.</p>
  
  <p>[EDIT]<br />
  An update: Firefox has gone into rapid development mode, but despite FF5 now being released this feature still isn't supported. And now that the majority of users have upgraded from FF3.6, the hack is no longer a solution. The good news I'm told that it <em>might</em> be added to Firefox 6, which with the new release schedule should be out in only a few months. If that's the case, then I guess I can wait it out, but it's a shame they couldn't have sorted it sooner.</p>
  
  <p>[FINAL EDIT]<br />
  I see that the ellipsis feature has finally been added to Firefox's "Aurora Channel" (ie development version). This means that it should now be released as part of Firefox 7, which is due out toward the end of 2011. What a relief.</p>
  
  <p>Release notes available here: <a href="https://developer.mozilla.org/en-US/Firefox/Releases/7" rel="noreferrer">https://developer.mozilla.org/en-US/Firefox/Releases/7</a></p>