- From: Ian Hickson <ian@hixie.ch>
- Date: Sun, 27 Jun 2004 11:37:03 +0000 (UTC)
On Sat, 26 Jun 2004, Matthew Raymond wrote: >> >> This actually isn't a problem. You just use the template as the initial >> blank row in legacy UAs, with the "[id]" bit as the index of that row. >> See, for instance, the example on the WHATWG site: >> >> http://whatwg.org/demos/repeat-01/ > > Oh yeah? Let's say that the user if viewing a list the they can > edit. Under the current draft, a user with a non-WF2 compliant will > have to remove the last row if they make changes to any of the > non-template rows that they want to submit. The server may be able to > compensate, but if the user doesn't know that, it doesn't really matter. The same would happen in a WF2 UA if repeat-start has the value 1, as it does by default. >>> <template id="order"><!-- >>> <tr id="row[order]"> >>> <td><input type="text" name="row[order].product" value=""></td> >>> <td><input type="text" name="row[order].quantity" value="1"></td> >>> </tr> >>> --></template> >> >> >> We don't want to do that because it requires allowing the <template> >> element anywhere (allowing an attribute anywhere is easy; allowing an >> element anywhere is not). Also, it wouldn't work in XML, where the >> comments can be dropped by the parser. > > Oh, I'm sure there's a way around that... > > <input template="template" type="hidden" value=" > <tr id="row[order]"> > <td> > <input type="text" name="row[order].product" value=""> > </td> > <td> > <input type="text" name="row[order].quantity" value="1"> > </td> > </tr> > "/> > > Well...I'll figure it out at some point. :( Yeah, I don't think I prefer that idea to the current one either. :-) -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.'
Received on Sunday, 27 June 2004 04:37:03 UTC