[whatwg] [wf2] Restrict template attributes to only fieldset, tr, and li?

Gorm Haug Eriksen gormer at opera.com
Mon Dec 12 09:16:08 PST 2005


On Mon, 12 Dec 2005 17:32:41 +0100, dolphinling  
<dolphinling at myrealbox.com> wrote:

> Because they're form attributes, they have no relation to anything  
> except forms. Semantically, there's no reason they *should* apply to any  
> non-form elements.

The title in the specification is a bit strange. Perhaps form should be  
removed from the chapter title ("3. The repetition model for repeating  
form controls")?

You can make any template you like and repeat using:  
document.getElementById(<repeat-template-id>).addRepetitionBlock(null);

The feature is very useful without forms and not only form attributes  
(check 3.6 in the wf2 specification).

-- 
Cheers,

- Gorm Eriksen



More information about the whatwg mailing list