Closed
Bug 470608
Opened 17 years ago
Closed 16 years ago
colgroup in table.html.tmpl not well supported
Categories
(Bugzilla :: Query/Bug List, defect)
Bugzilla
Query/Bug List
Tracking
()
RESOLVED
FIXED
Bugzilla 3.6
People
(Reporter: aaron, Assigned: aaron)
References
Details
Attachments
(3 files, 1 obsolete file)
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.5) Gecko/2008121622 Ubuntu/8.10 (intrepid) Firefox/3.0.5
Build Identifier:
The table.html.tmpl template makes use of HTML <colgroup> and <col>
tags to specify the class of the table cells in a column. This
appears to not be well supported by Mozilla based browsers. This
issue was found while working BUG 264511 and briefly discussed on the
Bugzilla news group
(http://groups.google.com/group/mozilla.support.bugzilla/browse_thread/thread/f33246457384e418/7d97e2ef5b376d91?lnk=gst&q=larsonsonline#7d97e2ef5b376d91)
and at that time it was suggested that Bugzilla should refrain from
using the <col> tag. The solution is to specify the class in each
<td> for each column. The patch is very straight forward, but it does
increase the size of the generated HTML by a fair amount. I can
supply a patch if desired.
Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1•17 years ago
|
||
(In reply to comment #0)
> and at that time it was suggested that Bugzilla should refrain from
> using the <col> tag. The solution is to specify the class in each
> <td> for each column.
No, the solution is that Mozilla fixes this problem in its browser.
Comment 2•17 years ago
|
||
(In reply to comment #1)
> No, the solution is that Mozilla fixes this problem in its browser.
No, because the other browsers don't support it well either, and in any case, we'd be waiting forever to get a release out that users actually could use with this tag. I have unfortunately found in all my web development experience that <col> and <colgroup> should be avoided.
Status: UNCONFIRMED → NEW
Ever confirmed: true
| Assignee | ||
Comment 3•17 years ago
|
||
This attachment shows that COL is broken in Firefox 3.0.5, Epiphany 2.24.1, and konqueror 4.1.3. It does work in IE (several versions). I don't know about other browsers.
| Assignee | ||
Comment 4•17 years ago
|
||
In Bug 472274 comment 10, there is a hint:
> Maybe they don't work in colgroup because
> http://www.w3.org/TR/CSS21/tables.html#columns didn't specify text-align as
> properties applying to column and column-group elements.
It would seem that if we want right justification to be portable, then specifying the class in each <td> is needed. Let me know if you want a patch to do this.
Comment 5•17 years ago
|
||
(In reply to comment #2)
> (Mozilla doesn't need to fix this problem)
> because the other browsers don't support it well either, (...)
Do you really suggest that Mozilla browsers should be as bad as other browsers???
(And you are wrong: In IE 7.05730.11 it works!)
Comment 6•17 years ago
|
||
Comment 7•17 years ago
|
||
(In reply to comment #4)
> In Bug 472274 comment 10, there is a hint:
>
> > (...)
> > http://www.w3.org/TR/CSS21/tables.html#columns didn't specify text-align as
> > properties applying to column and column-group elements.
The address above only shows some specialities of some properties.
The attributes allowed with COLGROUP and COL are defined in
http://www.w3.org/TR/html4/struct/tables.html#h-11.2.4
(Also, STYLE is allowed!)
My added attachment ("COL with Style ...") is simple and it works with IE 7.0.5730.11 but not with Firefox 2. ... - 3.0.9.
To me it looks like COLGROUP and COL don't work at all in Firefox.
(Maybe the default TD properties override the COL properties what they shouldn't do.)
| Assignee | ||
Comment 8•17 years ago
|
||
(In reply to comment #7)
> The attributes allowed with COLGROUP and COL are defined in
> http://www.w3.org/TR/html4/struct/tables.html#h-11.2.4
> (Also, STYLE is allowed!)
Thanks for the pointer. It would seem then that a bug report for firefox is in order. I will do that.
> My added attachment ("COL with Style ...") is simple and it works with IE
> 7.0.5730.11 but not with Firefox 2. ... - 3.0.9.
That's consistent with what I said in comment 3. Your attachment is simpler even than mine, so I'll steal it for the firefox bug report.
My default action (probably obvious by now) is "no action". I'm still willing to submit a patch, but with the degree of disagreement, it seems unlikely to get approved. Guidance is still solicited.
| Assignee | ||
Comment 9•17 years ago
|
||
(In reply to comment #8)
> (In reply to comment #7)
>
> > The attributes allowed with COLGROUP and COL are defined in
> > http://www.w3.org/TR/html4/struct/tables.html#h-11.2.4
> > (Also, STYLE is allowed!)
>
> Thanks for the pointer. It would seem then that a bug report for firefox is in
> order. I will do that.
I should have searched before posting. See Bug 285184. It appears that only some
css attributes are supported. See http://www.w3.org/TR/CSS21/tables.html#columns
> ... Guidance is still solicited.
Is this enough to indicate that a patch for Bugzilla is in order?
Comment 10•17 years ago
|
||
(In reply to comment #9)
It looks like the list in http://www.w3.org/TR/CSS21/tables.html#columns ('border, background, width, visibility') is an entire enumeration (i. e. "this and only this").
So the standard is bad and Firefox is right (to the standard).
(And IE is bad at all! ;-)
Comment 11•16 years ago
|
||
Since everything is pointing to not to use col/colgroup tags (see also bug 472274 comment 14) then let's get rid of them. I already had a patch in bug 472274 that fixed this so I'll moved relevant bits here per mkanat's review in bug 472274 comment 15.
This also moves the span for the [SEC] text inside the IF to fix a validation warning about using an empty span.
Updated•16 years ago
|
Component: Reporting/Charting → Query/Bug List
Updated•16 years ago
|
Attachment #388184 -
Flags: review?(mkanat) → review?(LpSolit)
Updated•16 years ago
|
Attachment #388184 -
Flags: review?(LpSolit) → review-
Comment 12•16 years ago
|
||
Comment on attachment 388184 [details] [diff] [review]
Kill col/colgroup usage, V1
Looks good but bitrotten (I guess due to bug 512623)
Updated•16 years ago
|
Severity: normal → minor
Target Milestone: --- → Bugzilla 3.6
| Assignee | ||
Comment 13•16 years ago
|
||
Updated patch for current HEAD.
Attachment #413677 -
Flags: review?(LpSolit)
Comment 15•16 years ago
|
||
Comment on attachment 413677 [details] [diff] [review]
Eliminate use of col/colgroup.
r=LpSolit
Attachment #413677 -
Flags: review?(LpSolit) → review+
Updated•16 years ago
|
Flags: approval+
Updated•16 years ago
|
Attachment #388184 -
Attachment is obsolete: true
Updated•16 years ago
|
Assignee: wicked → aaron
Comment 16•16 years ago
|
||
Checking in template/en/default/list/table.html.tmpl;
/cvsroot/mozilla/webtools/bugzilla/template/en/default/list/table.html.tmpl,v <-- table.html.tmpl
new revision: 1.52; previous revision: 1.51
done
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•