Well i know my Post was about a detail, but generally even if the problem is
really Minor (in our case to allow IE hacks :), I think it make sense to fix
it, especially when the fix is obvious.

But, I will follow your advise and develop a LeComment component...


Christophe.


2009/10/22 Andreas Andreou <andy...@di.uoa.gr>

> In fact the comment string shouldn't contain -- at all
> as per the specs... it makes browsers think the comment has ended
>
> Anyway, i guess you could write a custom component IeComment to handle this
> and add an improvement request in JIRA if you think the Comment class
> should be
> changed
>
> On Thu, Oct 22, 2009 at 7:14 PM, cordenier christophe
> <christophe.corden...@gmail.com> wrote:
> > Hello
> >
> > We are going into a strange bug with IE :) and hack like <!--[if ...-->
> >
> > These hacks seems to be not interpreted because Tapestry automatically
> add a
> > space character between '<!--' and '['
> >
> > Here is the implementation of Comment class :
> >
> >    @Override
> >    void toMarkup(Document document, PrintWriter writer, Map<String,
> String>
> > namespaceURIToPrefix)
> >    {
> >        writer.print("<!-- ");
> >        writer.print(comment);
> >        writer.print(" -->");
> >    }
> >
> > Actually, it is not required to have space characters but specification
> does
> > not allow a comment ending in --->. The following example is
> *not*well-formed.
> >
> > http://www.w3.org/TR/xml/#sec-comments
> >
> > What should be done here ?
> >
> > Please do not tell me not to use IE :)
> >
> > Regards,
> > Christophe.
> >
>
>
>
> --
> Andreas Andreou - andy...@apache.org - http://blog.andyhot.gr
> Tapestry / Tacos developer
> Open Source / JEE Consulting
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>

Reply via email to