W3C home > Mailing lists > Public > whatwg@whatwg.org > January 2005

[whatwg] Publishing another Web Forms 2 Call For Comments soon

From: Dean Edwards <dean@edwards.name>
Date: Sun, 30 Jan 2005 03:35:03 +0000
Message-ID: <41FC55E7.2010702@edwards.name>
Ian Hickson wrote:
> On Thu, 27 Jan 2005, Dean Edwards wrote:
> 
>>a global attribute also makes it harder to implement on IE6 where you 
>>would have to walk the DOM to find repetition blocks.
> 
> 
> Actually the definition of how the repetition model works is such that you 
> don't have to walk anything more than the parent chain of the repetition 
> template, and that applies to all UAs. So I don't see why implementing 
> this in IE would be any harder than anywhere else, at least not in so far 
> as the global attribute goes.
> 
> http://whatwg.org/specs/web-forms/current-work/#repetitionModel
> 

you are assuming that the person who is implementing wf2 is attaching 
the HTCs. that is one way i guess. by this i mean that they use 
something like this is CSS:

tr.repeat {
   behavior: url(/wf2/repeat.htc);
}

to make an implementation invisible a single WF2 "include" (a style 
sheet or JS library) should handle attaching the behaviors. because this 
is a global attribute (any element can be a repetition block) you'd have 
to walk the DOM to find those elements with the "repeat" attribute set.
we'd have to do something like this in CSS (thanks Olav):

* {
behavior:expression((this.repeat)?"url(repetitionElement.htc)":"");
display: expression((this.repeat=="template")?"none":this.display);
}

this is not a big issue for me Ian. the expressions above will work 
fine. they can be tweaked to stop them endlessly evaluating (a problem 
with expressions).

cheers,
-dean
Received on Saturday, 29 January 2005 19:35:03 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:21 UTC