[jifty-devel] IE rendering problem for empty HTML elements

Kevin Falcone falcone at bestpractical.com
Wed Aug 1 21:28:15 EDT 2007


On Aug 1, 2007, at 9:00 PM, Andrew Sterling Hanenkamp wrote:

> Yeah, I've looked into it a bit, but I haven't tackled the issue.  
> Basically, IE does not always collapse empty tags, which, if I  
> recall correctly, is not actually a wrong interpretation of the  
> specifications, but happens to differ from how the rest of the  
> others do it. Whether it's wrong or not, it is a difficulty and it  
> is Jifty's problem.
>
> Our clients are primarily IE users as well and I haven't gotten far  
> into fixing it because I haven't had a chance to read through the  
> JavaScript that handles the canonicalization and error handling  
> that inserts text into the empty DIVs causing the ugliness.
>
> The solutions I've thought of involve either not rendering the DIVs  
> at all unless they need to be filled and then adding code to fill  
> them when ever the Ajax routines run, or set display to none and  
> make them appear during the Ajax stuff.

toggling the display is  pretty doable in that JS.
Unfortunately, I don't have IE (mac and linux) so I really can't test  
a solution.

You want the code around lines 260 and 275 where we frob innerHTML

-kevin

>
> Jesse or others that have dealt with the JavaScript involved may  
> have better ideas, but that's just not a part of Jifty I've read  
> through yet.
>
> On 8/1/07, Henry Baragar <Henry.Baragar at instantiated.ca> wrote:  
> Hello all,
>
> Has anyone come up with a work-around to this problem with IE?
>
> Our client is viewing this more as a problem with our application  
> than with IE
> (since they and their clients mostly use IE).
>
> We will need to implement a work-around, if somebody does not  
> already have
> one.  Is the problem simpler in the case where AJAX is not needed  
> (as in our
> case)?
>
> Any help would be appreciated.
>
> Thanks,
> Henry
>
> On Friday, January 26 2007 04:55 am, Agent Zhang wrote:
> > On 12/3/06, Jesse Vincent <jesse at bestpractical.com> wrote:
> > > I think we'd probably want to add a class of "hidden" or somesuch,
> > > rather than an explicit styling. But what I'd really like is  
> for hlb and
> > > trs to weigh in here, since both of them know more about the  
> issues
> > > involved than I do.
> >
> > I'm still suffering from such issues in IE. How about dynamically
> > adding a class like "empty" and let the user to decide what to do  
> with
> > it? I think it's safe for existing Jifty apps.
> >
> > Regards,
> > Agent
> > _______________________________________________
> > jifty-devel mailing list
> > jifty-devel at lists.jifty.org
> > http://lists.jifty.org/cgi-bin/mailman/listinfo/jifty-devel
> _______________________________________________
> jifty-devel mailing list
> jifty-devel at lists.jifty.org
> http://lists.jifty.org/cgi-bin/mailman/listinfo/jifty-devel
>
> _______________________________________________
> jifty-devel mailing list
> jifty-devel at lists.jifty.org
> http://lists.jifty.org/cgi-bin/mailman/listinfo/jifty-devel



More information about the jifty-devel mailing list