[Webkit-unassigned] [Bug 7930] New: Adding a CAPTION to a TABLE, disables COL/COLGROUP as selectors

bugzilla-daemon at opendarwin.org bugzilla-daemon at opendarwin.org
Thu Mar 23 08:34:51 PST 2006


http://bugzilla.opendarwin.org/show_bug.cgi?id=7930

           Summary: Adding a CAPTION to a TABLE, disables COL/COLGROUP as
                    selectors
           Product: WebKit
           Version: 417.x
          Platform: Macintosh
               URL: http://www.lenk.no/uppmerkt/Safari-Table-Caption-
                    Bug.html
        OS/Version: Mac OS X 10.4
            Status: UNCONFIRMED
          Severity: major
          Priority: P2
         Component: Tables
        AssignedTo: webkit-unassigned at opendarwin.org
        ReportedBy: hyperlekken at lenk.no


When a table contains the CAPTION element, Safari ignores all styling of COL
and COLGROUP.

How to recreate the bug:
1. Create a valid 3 column TABLE containing the CAPTION element. (Doctype HTML
4.0.1 Strict)
2. For it to be valid, CAPTION must follow immediately after the TABLE start
tag.
    Her is a mini example: 
    [TABLE][CAPTION]caption[/CAPTION][COL][COL][COL][TR][TD]A[TD]B[TD]C[/TABLE]
3. Add styling to the COL element. Add a width and a background color!
    TABLE{background:red;} COL{width:10em;background:green;}
4. >> RESULT: Safari displays the whole table in RED and ignores the COL
styling.
    >> SHOULD HAVE HAPPENED: the columns should have been green and 10em wide.

WORKAROUND (sort of): if one moves the CAPTION _after_ the COL/COLGROUP tags,
then the table will be displayed correctly in Safari. However, this will make
the HTML code invalid.


-- 
Configure bugmail: http://bugzilla.opendarwin.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list