W3C home > Mailing lists > Public > whatwg@whatwg.org > August 2004

[whatwg] template element?

From: Ian Hickson <ian@hixie.ch>
Date: Sun, 22 Aug 2004 00:04:19 +0000 (UTC)
Message-ID: <Pine.LNX.4.61.0408220000550.20869@dhalsim.dreamhost.com>
On Wed, 28 Jul 2004, fantasai wrote:
>
> The current repetition model adds four global attributes to every 
> element [...] Would it perhaps make more sense to create a <template> 
> element?

That was my original design (when I was still at the drawing-on-paper- 
napkins stage). Doesn't work, because it wouldn't solve the most common 
use case, namely, repeating table rows. It's not compatible with the CSS 
table model, and it's not compatible with the HTML table model. The former 
could maybe be fixed by changing CSS, but the latter couldn't be changed 
since parsing of HTML tables is one of the most complicated parts of HTML 
parsers today.

Note that XForms ended up with the same design, basically (attribute- 
based), for the same reason.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Saturday, 21 August 2004 17:04:19 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:36 UTC