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

[whatwg] Web Forms 2.0 Substantive - Section 3

From: Ian Hickson <ian@hixie.ch>
Date: Wed, 23 Jun 2004 09:28:16 +0000 (UTC)
Message-ID: <Pine.LNX.4.58.0406230919000.53@dhalsim.dreamhost.com>
On Tue, 15 Jun 2004, fantasai wrote:
>
> 3.3. New form controls
> ----------------------
>
> How are the labels for these buttons derived?

Fixed.


> 3.5. The repetition model
> -------------------------
>
> # html|*[|repeat="template"] { display: none; }
>
> Should that rule be !important?

It wasn't intended to be. The specifications don't say what a UA
!important rule means, anyway.


> 3.5.1. Addition
> ---------------
>
> # 6. If the new repetition block has an ID attribute (that is, an attribute
> #    specifying an ID, regardless of the attribute's namespace or name), then
> #    that attribute's value is used as the template name in the following steps.
> #
> # 8. The attribute from which the template's name was derived, if any, is
> #    removed from the new repetition block element. (See the previous two
> #    steps.)
>
> Step 8 leaves the repetition block element without an ID. Instead of removing
> the attribute, append the repetition index to it instead. A repetition block
> derived from a template with id="tmpl" would thus have an id like id="tmpl8".

Why? There's no guarentee that ID isn't already used. What's the use case?

If the author really wanted that, he could just put an element inside the
repetition template with id="tmpl[id]", and navigate from that. Much more
likely is that the author wants one of the controls _inside_ the template,
and so that is what would have the ID attribute with [id].

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Wednesday, 23 June 2004 02:28:16 UTC

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