Re: Problems with & handling between RI and Facelets

From: Michael Youngstrom <>
Date: Fri, 28 Jul 2006 12:07:46 -0600

> For the HTML case, it's pretty clear, we need to render '&'. However,
> I think if the content-type is determined to be xhtml, I don't see why we
> couldn't render '&amp;' instead.

Does some browser break if you render an &amp;?

I created a simple html page (below) with both cases in an anchor and
they both seem to work fine in Firefox and IE 6:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
        <a href=";bob=5">
                Test entity
        <a href="">
                Test non entity