W3C home > Mailing lists > Public > public-html@w3.org > January 2012

Re: [html5] inline table

From: Leif Halvard Silli <xn--mlform-iua@xn--mlform-iua.no>
Date: Mon, 30 Jan 2012 09:06:21 +0100
To: Benjamin Hawkes-Lewis <bhawkeslewis@googlemail.com>
Cc: Andrew Fedoniouk <news@terrainformatica.com>, public-html@w3.org
Message-ID: <20120130090621072533.83bd1c3a@xn--mlform-iua.no>
Benjamin Hawkes-Lewis, Mon, 30 Jan 2012 07:49:12 +0000:
> On Mon, Jan 30, 2012 at 12:26 AM, Andrew Fedoniouk wrote:

>> I understand that HTML5 parsing model prohibits <table> and other by
>> default block elements to be contained inside text containers like <p>
>> and <span>.
>> 
>> But what if I want to use table that has display:inline-table styling
>> inside <p> for example:
>> http://terrainformatica.com/w3/inline-table.htm
>> 
>> Is use of <span> soup with display:inline-table & friends styling is
>> the only option for such cases?
> 
> Can you give an example of real content with inline-block tables?

Example: The <object> element is supposed to be able to contain 
fallback for AT etc. And so, an image of a diagram could use a table as 
fallback. Only, it is not legal to considered conforming to have a 
<table> inside an <object> inside a <p>.

http://tinyurl.com/objecttable

> What's your rationale for not using <div> instead of <p> here?
> 
> Note how HTML5 defines what represents a "paragraph":
> 
>     http://dev.w3.org/html5/spec/content-models.html#paragraphs

It is a bit unpractical to change the parent element just because the 
child element happens to to be an <object> with fallback, no?
-- 
Leif H Silli
Received on Monday, 30 January 2012 08:06:52 GMT

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