[whatwg] Element content models

Ian Hickson ian at hixie.ch
Wed Sep 2 16:49:53 PDT 2009


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.   `._.-(,_..'--(,_..'`-.;.'



More information about the whatwg mailing list