[TYPO3-content-rendering] Table summary attribute in HTML5

Patrick Broens patrick at patrickbroens.nl
Mon Aug 8 15:59:25 CEST 2011


On 5-8-11 8:44 , Steffen Ritter wrote:
> Hey Patrick,
> I would opt for using caption! Give it a special class, so it can be
> hidden for tables if wanted...
> 
> Just my 2 cents..
> 
> regards
> 
> Steffen
> 
That was the idea of Thomas Deinhamer as well. The reason why I'm
against it is that this feature will behave differently for HTML5 and
the other doctypes. The others will not show anything, HTML5 does.

But if the rest is in favor of displaying it, I would suggest the following:

<table>
 <caption>
  <strong>The original caption</strong>
  <details>
   <summary>Help</summary>
   <p>The summary itself</p>
  </details>
 </caption>
 <tbody>
...

Patrick


More information about the TYPO3-project-content-rendering mailing list