This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 13770 - Take back colspan="0" and rowspan="0" for TD/TH elements
Summary: Take back colspan="0" and rowspan="0" for TD/TH elements
Status: RESOLVED WONTFIX
Alias: None
Product: HTML WG
Classification: Unclassified
Component: LC1 HTML5 spec (show other bugs)
Version: unspecified
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: Ian 'Hixie' Hickson
QA Contact: HTML WG Bugzilla archive list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-12 23:45 UTC by Marat Tanalin | tanalin.com
Modified: 2014-10-18 15:52 UTC (History)
7 users (show)

See Also:


Attachments

Description Marat Tanalin | tanalin.com 2011-08-12 23:45:13 UTC
http://www.w3.org/TR/html5/tabular-data.html#dom-tdth-colspan

<<
The colSpan IDL attribute must reflect the content attribute of the same name. The value must be limited to only non-negative numbers _greater than zero_.
>>

In HTML4, "colspan" and "rowspan" attributes of TD/TH elements has been allowed to have zero value ("0"):
http://www.w3.org/TR/html4/struct/tables.html#adef-colspan

This is very useful when column or row number is unknown in advance. It's harmful to force web-editors to calculate column or row number manually while browser could easily do this automatically.

There is a known rule in spec development: when there are two independent implementations of a specification, then the specification status is promoted to "recommendation" ("candidate" or "proposed").

But there ARE already two (well, 1.5) working independent implementations of zero colspan/rowspan:

1. Firefox (both zero colspan and rowspan are fully working)

2. and Opera (supports rowspan="0" and does not support colspan="0").

So, zero value of colspan/rowspan is very good candidate to keep in HTML spec and, moreover, to encourage rest browser vendors to implement this useful feature as soon as possible.

There are no serious reasons to remove zero values of colspan/rowspan from the HTML specification. It's not something "unimplemented at all", it's already quite usably implemented and should be kept intact in the HTML spec.

Thanks.
Comment 1 Ian 'Hixie' Hickson 2011-08-31 23:24:26 UTC
EDITOR'S RESPONSE: This is an Editor's Response to your comment. If you are satisfied with this response, please change the state of this bug to CLOSED. If you have additional information and would like the editor to reconsider, please reopen this bug. If you would like to escalate the issue to the full HTML Working Group, please add the TrackerRequest keyword to this bug, and suggest title and text for the tracker issue; or you may create a tracker issue yourself, if you are able to do so. For more details, see this document:
   http://dev.w3.org/html5/decision-policy/decision-policy.html

Status: Rejected
Change Description: no spec change
Rationale: rowspan is supported in the spec. colspan is not because only Gecko supports it and it can't be done incrementally.
Comment 2 Torsten Bronger 2011-10-15 18:31:40 UTC
I don't see why it is harmful that colspan="0" "can't be done incrementally".  An inportant use case is a row that spans the whole table.  Writing a routine that generates such a row is currently only possible if the number of columns is given as a parameter to the routine, which is wasteful.