[whatwg] [html5] 2.20.1. The datagrid element
Ian Hickson
ian at hixie.ch
Sun May 1 13:02:40 PDT 2005
On Sun, 1 May 2005, Anne van Kesteren wrote:
>
> I was thinking about checking descendents instead of children as last
> option. Not sure how that is for performance though. Perhaps the
> specification should be updated after real world problems have occured
> with the current specification instead of thinking about real world
> problems that might come to exist.
Yeah. (You'd also get into problems with nested tables, etc.)
> > > > As the spec says: The colspan and rowspan attributes are ignored
> > > > by this algorithm.
> > > >
> > > > Datagrids in common GUIs aren't capable of complex column captions
> > > > like the above. How would you change the spec to work with the
> > > > above?
> > >
> > > Don't check THEAD for such data.
> >
> > This would mean having to do a search of every element in the <thead>
> > before knowing whether to use it or not. This would be very bad for
> > performance. Also, it's unclear to me what you would look for --
> > colspan attributes with values that don't convert to numeric 1?
>
> This would mean checking the first child of the TBODY element for the
> amount of TD children it has. Not?
Oh you want to use the tbody for the cell count and the thead for the
captions? I guess we could do that. It makes it simpler.
--
Ian Hickson U+1047E )\._.,--....,'``. fL
http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,.
Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.'
More information about the whatwg
mailing list