W3C home > Mailing lists > Public > public-html@w3.org > July 2011

[Bug 13174] New: Allow block elements inside TH, maybe add new THCAPTION element

From: <bugzilla@jessica.w3.org>
Date: Thu, 07 Jul 2011 17:08:44 +0000
To: public-html@w3.org
Message-ID: <bug-13174-2495@http.www.w3.org/Bugs/Public/>
http://www.w3.org/Bugs/Public/show_bug.cgi?id=13174

           Summary: Allow block elements inside TH, maybe add new
                    THCAPTION element
           Product: HTML WG
           Version: unspecified
          Platform: PC
        OS/Version: Windows NT
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HTML5 spec (editor: Ian Hickson)
        AssignedTo: ian@hixie.ch
        ReportedBy: mtanalin@yandex.ru
         QAContact: public-html-bugzilla@w3.org
                CC: mike@w3.org, public-html-wg-issue-tracking@w3.org,
                    public-html@w3.org


In XHTML 1.0, block elements inside TH elements was allowed.

In HTML5, only phrasing content is allowed inside TH:
http://www.w3.org/TR/html5/tabular-data.html#the-th-element

This is bad in some cases, and forces developers to use TD instead of TH when
the cell actually contains _heading_ content. Using TD instead of TH for
heading content is harmful as for semantics.

For example:

<th>
    <dl>
        <dt>Actual header</dt>
        <dd>Additional content that, by visual design,
        cannot be represented as a separate table cell</dd>
    </dl>
</th>

Its very questionable that heading content cannot contain blocks at all
according to common sense. However, if necessary, new THCAPTION element could
be added to the HTML standard to resolve the semantic issue:

<th>
    <dl>
        <dt><thcaption>Real header</thcaption></dt>
        <dd>Additional content that, by visual design,
        cannot be represented as a separate table cell</dd>
    </dl>
</th>

Thus, user agents (that ones that care about such semantics) would treat
THCAPTION content as actual heading content of the TH, and all other content of
the TH could be treated as non-heading content (as inside TD).

Thanks.

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
Received on Thursday, 7 July 2011 17:08:45 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 9 May 2012 00:17:36 GMT