Last modified: 2011-03-13 18:06:10 UTC
Steps to reproduce: 1. Navigate to wikimedia main page. 2. Open a page in edit mode. 3. Click on the 'Table' button on the 'Advanced' toolbar. 4. Enter '0' for 'Rows' field and click on the 'Insert' button. Actual results: User allows to insert a table of '0' rows. Expected results: System should be display 'You cannot insert a table with zero rows or columns' message. Note: User cannot insert a table with '0' columns. URL : http://prototype.wikimedia.org/rc-en/index.php/Main_Page Version : 1.17alpha (r80667)
The error is in fact shown if columns is 1 and rows is 0. However if the "Add header row" checkbox is ticked then 0 rows is allowed. We can't decide and should not 'disallow' a user from creating a table header without rows. This could be useful for demonstration purpuses if no content is available yet. The following renders just fine, no problems: {| class="wikitable" |- ! Header ! text |} - Moving issue from MediaWiki/pag editing to Extensions/WikiEditor as this toolbar is not part of the MediaWiki core. - Marking WONTFIX.
Toggling the FCK editor on and off repeatedly (when this extension is installed into 1.17) show will add one row so that there is 1 instead of 0.
Opening a new bug with my comment