[Phpfreechat-svn] SF.net SVN: phpfreechat: [458] trunk/themes/default/templates/pfcclient.js.tpl.php
Status: Beta
Brought to you by:
kerphi
From: <ke...@us...> - 2006-04-19 19:58:51
|
Revision: 458 Author: kerphi Date: 2006-04-19 12:58:43 -0700 (Wed, 19 Apr 2006) ViewCVS: http://svn.sourceforge.net/phpfreechat/?rev=458&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: -------------- trunk/themes/default/templates/pfcclient.js.tpl.php Modified: trunk/themes/default/templates/pfcclient.js.tpl.php =================================================================== --- trunk/themes/default/templates/pfcclient.js.tpl.php 2006-04-19 19:54:05 UTC (rev 457) +++ trunk/themes/default/templates/pfcclient.js.tpl.php 2006-04-19 19:58:43 UTC (rev 458) @@ -678,7 +678,12 @@ li.appendChild(img); } - li.appendChild(document.createTextNode(nicks[i])); + + // 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); li.style.borderBottom = '1px solid #AAA'; ul.appendChild(li); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |