jsr344-experts@javaserverfaces-spec-public.java.net

[jsr344-experts] Re: facelets-processing jspx/xml CDATA handling

From: Edward Burns <edward.burns_at_oracle.com>
Date: Fri, 3 Feb 2012 10:39:38 -0800

>>>>> On Mon, 9 Jan 2012 15:29:15 -0500, Leonardo Uribe <lu4242_at_gmail.com> said:

LU> Hi
LU> Yes, on JSF 2.1 spec Appendix A 1.2.1.1 says this about process CDATA
LU> sections (see Table 1-1):

LU> CDATA sections

LU> xhtml : passed through
LU> xml : consumed
LU> jspx : consumed

LU> So, according to this report we need to fix jspx mode so it swallow
LU> CDATA, but keep the content (swallow tag/keep?).

Wow, this bug is entirely the result of misunderstanding what is meant
by "consumed". I understood it to mean the entire CDATA section,
including its contents, are consumed, and this is exactly what the
implementation does. We even have an automated test that will break
nicely when we fix this issue in the manner suggested by Andy.

I've fixed it now, anyway, and clarified the spec as well.

Ed

-- 
| edward.burns_at_oracle.com | office: +1 407 458 0017
| homepage:               | http://ridingthecrest.com/