Page MenuHomePhabricator

Do not generate <td></td>
Closed, InvalidPublic

Description

Author: gangleri

Description:
Hallo!

a) screen shot will follow
b) testcase will follow

Please take a look at
http://commons.wikimedia.org/w/index.php?title=Template:Wikivar&oldid=1187033&action=render
in Firefox and in Internet Explorer.

http://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/latest-trunk/
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20060111
Firefox/1.6a1
displays empty cells correctly

This is not the case with Internat Explorer:
<td></td> does not show the border of the cells.

*request*
One idea to fix this might be render empty cells
as <td>&nbsp;</td> or as <td>&#160;</td>.

best regards reinhardt [[user:gangleri]]


Version: unspecified
Severity: enhancement
URL: http://commons.wikimedia.org/w/index.php?title=Template:Wikivar&oldid=1187533#custom_namespaces

Details

Reference
bz4589

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 9:04 PM
bzimport added a project: MediaWiki-Parser.
bzimport set Reference to bz4589.
bzimport added a subscriber: Unknown Object (MLST).

gangleri wrote:

screen shot for bug 04589

Attached:

bugzilla_04589_001.jpg (399×747 px, 57 KB)

gangleri wrote:

test case for bug 04589

This test case fails both in Internet Explorer *and* in Firefox.

http://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/latest-trunk/
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20060111
Firefox/1.6a1

Attached:

gangleri wrote:

*note*
The same url is used / handeled at
Bug 4590: (&oldid=nnnn)&action=render generates wrong / invalid url

This is normal behavior of all browsers since HTML 3 introduced tables.

gangleri wrote:

Thanks Brion for mentioning the specification.

If it does not make sense to generate <td></td> it should be a feature / an
enhancement of MediaWiki *not* to generate such code.

The problem is that contributors using Firefox would not see the error. We can
not expect that contributors double check their edits with other browsers.

REOPENing bug and changing "Severity" to enhancement.

best regards reinhardt [[user:gangleri]]

gangleri wrote:

changing summary from
Fix for Internet Exporer when displaying emty cells in a table
to
Do not generate <td></td>

changing the url to
http://commons.wikimedia.org/w/index.php?title=Template:Wikivar&oldid=1187533#custom_namespaces

*notes*

  1. the new url (which does *not* include &action=render) renders properly in FF

nigthly trink but does not render properly with IE

  1. the old url (which *includes* &action=render)

http://commons.wikimedia.org/w/index.php?title=Template:Wikivar&oldid=1187033&action=render
renders the same both in FF and IE

Will investigate at https://bugzilla.mozilla.org/ about this issue.

Why did you reopen this? As I already explained, this is the *NORMAL* rendering
of empty table cells on most browsers traditionally. action=render doesn't
include custom style sheets, so that normal default rendering is used.

There's no bug here. Resolving INVALID.