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

Dean Edwards dean at edwards.name
Mon Dec 12 20:01:19 PST 2005

Ian Hickson wrote:
> Is this only because it is easier to implement the DOM interface on a 
> limited set of elements than on all elements?

Basically, yes. As far as the DOM is concerned it is nigh on impossible 
to support dynamic creation of repetition templates. Support for 
repetition blocks is slightly easier. Regarding CSS/markup, the only way 
to support the spec as it currently stands is to write some form of 
DOM-walking to identify repetition templates and associated blocks.

I outlined a way to speed this up in a previous message:


(you might have to read the entire thread to get the point).

If the tag set were restricted then the need for DOM walking would be 
removed and would significantly improve performance on an IE platform.


More information about the whatwg mailing list