[Seaside] Generating html hacks for IE
Philippe Marschall
philippe.marschall at gmail.com
Thu May 15 04:43:20 UTC 2008
#revealedIf and #if work only in the <head>. Not in the <body>. Doing
IE hacks in the body (especially for closing anchors) seems very
fishy.
You could do something like
html anchor
with: [
html text: 'item1'.
html html: '<!--[if IE7]><!-->' ].
html html: '<!--<![endif]-->'
Cheers
Philippe
2008/5/14, Boris Popov <boris at deepcovelabs.com>:
> Sure,
>
> html revealedIf ie7; do: [html anchor with: 'item1']
>
> See #testRevealedConditionalComment for more details,
>
> Cheers!
>
> -Boris
>
> --
> +1.604.689.0322
> DeepCove Labs Ltd.
> 4th floor 595 Howe Street
> Vancouver, Canada V6C 2T5
> http://tinyurl.com/r7uw4
>
> 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.
>
>
> > -----Original Message-----
> > From: seaside-bounces at lists.squeakfoundation.org [mailto:seaside-
> > bounces at lists.squeakfoundation.org] On Behalf Of Squeaker
> > Sent: Wednesday, May 14, 2008 12:28 PM
> > To: seaside at lists.squeakfoundation.org
> > Subject: [Seaside] Generating html hacks for IE
> >
> > Greetings,
> >
> > I have to include a hack for using IE7. I need to produce html that
> > looks like this:
> >
> > <a href="javascript:void(0)">item1<!--[if
> IE7]><!--></a><!--<![endif]-->
> >
> > The Smalltalk code that I have looks like this:
> >
> > html anchor with: 'item1'.
> >
> > Of course this does not generate the required hack i.e.,
> > <!--[if IE7]><!--></a><!--<![endif]-->
> >
> > Is the "right" way to produce the hack
> > to subclass WAAnchorTag?
> >
> > How in general do people deal with having to produce specialized code
> > (hacks) like this for IE?
> >
> > Thanks,
> > Frank
> >
> > _______________________________________________
> > seaside mailing list
> > seaside at lists.squeakfoundation.org
> > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
More information about the seaside
mailing list