[whatwg] Element content models

Schuyler Duveen whatwg at graffitiweb.org
Sat Aug 29 08:22:20 PDT 2009


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>

Ian Hickson wrote:
> On Sun, 26 Nov 2006, Anne van Kesteren wrote:
>> Some element content model explicitly mention that they can't contain 
>> themself. This probably makes sense for the following elements as well:
>>
>> * <meter>
>> * <progress>
>> * <time>
>> * <t>
>> * <m>
>> * <abbr>?
>> * <cite>?
>>
>> There might be more.
> 
> Done for <meter>, <progress>, and <time>. Left the others.
> 



More information about the whatwg mailing list