W3C home > Mailing lists > Public > whatwg@whatwg.org > October 2008

[whatwg] input type=hidden outside phrasing content

From: Anne van Kesteren <annevk@opera.com>
Date: Thu, 16 Oct 2008 23:41:02 +0200
Message-ID: <op.ui4zuolu64w2qv@annevk-t60.oslo.opera.com>
On Thu, 16 Oct 2008 23:08:32 +0200, Mike Wilson <mikewse at hotmail.com>  
wrote:
> Yes, maybe it is? Reading the spec again, I realize I had
> missed the sentence "All phrasing content is also flow
> content". (I was mainly on the lookout for DTD-like info.)
> I have included a couple of the cases I'm thinking of below
> (that are invalid in HTML4). But some of them may already be
> ok in HTML5?

I'd suggest playing with validator.nu. Out the top of my head:


> <form ...>
>   <input type="hidden" ...>
> </form>

Fine.


> <blockquote>
>   <input type="hidden" ...>
> </blockquote>

Fine.


> <table>
>   <input type="hidden" ...>
> </table>

Not fine.


> <table>
>   <tr>
>     <input type="hidden" ...>
>     <td></td>
>   </tr>
> </table>

Not fine.


> <ul/ol/dl>
>   <input type="hidden" ...>
> </ul/ol/dl>

Not fine.


For the table and lists cases, is there a good use case for complicating  
their content model or could you just as well put the input either before  
or after the table or list?


-- 
Anne van Kesteren
<http://annevankesteren.nl/>
<http://www.opera.com/>
Received on Thursday, 16 October 2008 14:41:02 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:44 UTC