Open Bug 185672 Opened 23 years ago Updated 3 years ago

colspan ="0" should stop at colgroup boundaries

Categories

(Core :: Layout: Tables, defect, P3)

defect

Tracking

()

Future

People

(Reporter: bernd_mozilla, Unassigned)

Details

(Keywords: html4, testcase)

Attachments

(1 file, 1 obsolete file)

quote from html 4.0.1 This attribute specifies the number of columns spanned by the current cell. The default value of this attribute is one ("1"). The value zero ("0") means that the cell spans all columns from the current column to the last column of the column group (COLGROUP) in which the cell is defined. http://lxr.mozilla.org/seamonkey/source/layout/html/table/src/nsCellMap.cpp#2138 seems to be wrong PRInt32 endColIndex = (0 == cell->GetColSpan()) ? numColsInTable - 1 : aColIndex + cellColSpan - 1;
Attached file testcase
Keywords: html4, testcase
OS: Windows 98 → All
Hardware: PC → All
Priority: -- → P3
Target Milestone: --- → Future
Attached file Test case without colgroup fails too. (obsolete) —
Also wrong when no colgroup is specified. The default colgroup spans the whole table.
Comment on attachment 130484 [details] Test case without colgroup fails too. the testcase is invalid, 0 col and rowspans dont work in quirks mode. Use a strict doctype and it will work
Attachment #130484 - Attachment is obsolete: true
*** Bug 227702 has been marked as a duplicate of this bug. ***
Assignee: layout.tables → nobody
QA Contact: amar → layout.tables
This bug will change once we do what http://dev.w3.org/html5/spec/Overview.html#attr-tdth-colspan requires. To remove the 0 colspans entirely
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: