Revision: 457
Author: kerphi
Date: 2006-04-19 12:54:05 -0700 (Wed, 19 Apr 2006)
ViewCVS: http://svn.sourceforge.net/phpfreechat/?rev=457&view=rev
Log Message:
-----------
Bug fix: IE doesn't support 'white-space: pre' css rule, a workaround is to use <nobr> element. This is not xhtml complient but it's just a workeround for this crappy IE... (thanks to Rhialto for the tip)
Modified Paths:
--------------
branches/0.x/themes/default/templates/pfcclient.js.tpl.php
Modified: branches/0.x/themes/default/templates/pfcclient.js.tpl.php
===================================================================
--- branches/0.x/themes/default/templates/pfcclient.js.tpl.php 2006-04-19 19:40:32 UTC (rev 456)
+++ branches/0.x/themes/default/templates/pfcclient.js.tpl.php 2006-04-19 19:54:05 UTC (rev 457)
@@ -341,8 +341,11 @@
{
var li = document.createElement('li');
li.setAttribute('class', '<?php echo $prefix; ?>nickmarker <?php echo $prefix; ?>nick_'+ hex_md5(nicks[i]));
- var txt = document.createTextNode(nicks[i]);
- li.appendChild(txt);
+ // nobr is not xhtml valid but it's a workeround
+ // for IE which doesn't support 'white-space: pre' css rule
+ var nobr = document.createElement('nobr');
+ nobr.appendChild(document.createTextNode(nicks[i]));
+ li.appendChild(nobr);
ul.appendChild(li);
}
var fc = nickdiv.firstChild;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|