[whatwg] input type=hidden outside phrasing content

Anne van Kesteren annevk at opera.com
Thu Oct 16 14:41:02 PDT 2008


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/>



More information about the whatwg mailing list