Last modified: 2010-05-15 14:35:53 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 1920 - Tables don't support the "nowrap" cell attribute
Tables don't support the "nowrap" cell attribute
Product: MediaWiki
Classification: Unclassified
Page editing (Other open bugs)
PC All
: Normal normal with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on:
  Show dependency treegraph
Reported: 2005-04-18 22:06 UTC by Colin Burnett
Modified: 2010-05-15 14:35 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Description Colin Burnett 2005-04-18 22:06:31 UTC
Adding "nowrap" to a table cell or row should force the browser to not wrap
lines at spaces.  However, media wiki ignores these.  For example, putting this
in an article:

{| width="50"
|nowrap|hello world

<TABLE width="50">
 <TR nowrap>
  <TD nowrap>hello world</TD>

will generate the following HTML:

<table width="50">
<td>hello world</td>
<table width="50">
<td>hello world</td>

which is clearly missing the nowrap attribute.  The only way to actually force
this is to replace all spaces with the "& nbsp ;" equivalent, which is nothing
short of a hack.
Comment 1 Brion Vibber 2005-04-18 22:17:19 UTC
The nowrap attribute is deprecated in HTML 4[1], and since we don't already support it we probably aren't going to add it.

Have you tried the equivalent CSS bit[2]?
Something like style="white-space:nowrap" should do it.

Comment 2 Brion Vibber 2005-04-25 10:00:24 UTC
Actually, the updated HTML sanitizer code in 1.5 already allows this attribute. Resolving FIXED.

Note You need to log in before you can comment on or make changes to this bug.