[Seaside] Cleaning up tables for IE
ssastre at seaswork.com
Tue Aug 28 21:26:21 UTC 2007
I would love to help Boris but I didn't reach that point myself. In fact I
don't use cells (yet). Once I was tempted to but the design was reviewed
with designers and the interface was made simpler.
> -----Mensaje original-----
> De: seaside-bounces at lists.squeakfoundation.org
> [mailto:seaside-bounces at lists.squeakfoundation.org] En nombre
> de Boris Popov
> Enviado el: Martes, 28 de Agosto de 2007 13:24
> Para: Seaside - general discussion
> Asunto: [Seaside] Cleaning up tables for IE
> You knew this was coming... I've been cleaning up our
> reporting component to finally dead with IE's treatment of
> empty data cells and just wanted to poke others' brains about
> ways they've dealt with similar problems. As we all know IE
> really likes having values in data cells, if it does not it
> will not apply most of styling like borders and such.
> It's fairly easy to address this on the reporting side by
> printing non-breaking spaces when textual values for cells
> are empty, but it gets tricky for those cases where cells use
> arbitrary rendering blocks to spit out anchors, images and
> what not. In that case its really down to the cell to
> determine if there's content just prior to closing of the tag
> and if there isn't any, print .
> So far I'm looking at possibly adding this as a workaround,
> super before.
> position := self document stream position.
> WATableCellTag >>after
> position = self document stream position ifTrue: [canvas space].
> super after.
> But this only gets you half-way, because doing things like,
> html tableData: [html strong: '']
> will still break IE's rendering. I can't think of any
> reasonably clean and generic way of determining whether table
> cell contents are semantically "empty" as far as IE's point
> of view is other than to start weeding out these cases one by
> one, which I don't mind. Thoughts?
> DeepCove Labs Ltd.
> 4th floor 595 Howe Street
> Vancouver, Canada V6C 2T5
> boris at deepcovelabs.com
> CONFIDENTIALITY NOTICE
> This email is intended only for the persons named in the
> message header. Unless otherwise indicated, it contains
> information that is private and confidential. If you have
> received it in error, please notify the sender and delete the
> entire message including any attachments.
> Thank you.
> Seaside mailing list
> Seaside at lists.squeakfoundation.org
More information about the seaside