[whatwg] Web Forms 2.0 Substantive - Selecting Repetition Blocks
fantasai.lists at inkedblade.net
Tue Jun 15 03:29:24 PDT 2004
3.1.1. What the repetition model can't do
# This specification also does not address the ability to select a [repetition
# block] to move it up or down without using buttons directly associated with
# the current [repetition block].
The primary blocker for this seems to be that you have no way of saying
"this repetition block, as a whole, is selected" so that the (re)moving
buttons can act on the block. So here's a suggestion:
If the repetition block contains a checkbox control (<input type="checkbox">)
that has a 'template' attribute whose value is the ID of repetition block's
template, then the repetition block is selected.
If a (re)move button is activated, and it is associated with a template by
its template attribute and not by containment in one of the template's
repetition blocks, then it triggers the (re)moving action on all the
template's selected repetition blocks, in document order.
Reword as necessary.
More information about the whatwg