W3C home > Mailing lists > Public > whatwg@whatwg.org > September 2009

[whatwg] Element content models

From: Ian Hickson <ian@hixie.ch>
Date: Wed, 2 Sep 2009 23:49:53 +0000 (UTC)
Message-ID: <Pine.LNX.4.62.0909022347350.6775@hixie.dreamhostps.com>
On Sat, 29 Aug 2009, Schuyler Duveen wrote:
>
> There is a use case for hierarchical progress elements: e.g. multiple 
> file uploads (or multiple phases).  Consider the following example:
> 
> <progress id="p" max="17" value="5" data-units="MB">
>   <progress id="current-file-progress" max="2">1</progress>
> </progress>
> 
> could be displayed something like this:
> <style> div {margin:0;padding:0;height:20px;float:left;} </style>
> <div id="p" style="width:170px;background-color:red;">
>     <div id="p-prog" style="width:50px;background-color:green;"></div>
>     <div id="current-file-progress"
>          style="width:20px;background-color:yellow">
>         <div id="f-prog"
>              style="width:10px;background-color:#00FF00"></div>
>     </div>
> </div>

It could, but per spec the inner <progress> is ignored (the progress 
element is replaced with the widget, like <input> or <textarea>). That's 
why we want the validator to flag this.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Wednesday, 2 September 2009 16:49:53 UTC

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