Re: XHTML Serializer block/Ajax: Bug

2007-03-19 Thread Andrew Madu
Hi Joerg, Didn't you say in another thread it works as expected in Firefox - a browser supporting XHTML? Yes, but that was only in reference to the in-built xhtml serializer, which as we know doesn't really xhtml serialize, and not the one from blocks which doesn't quite like javascript! --

Re: XHTML Serializer block/Ajax: Bug

2007-03-19 Thread Joerg Heinicke
On 19.03.2007 14:41, Jason Johnston wrote: Yes, I only fixed the html serializer and that fix is not appropriate for the xhtml. In html, the contents of the script tag is defined as a cdata section, therefore there should be no encoding inside the script. And that's what I fixed. With xhtml the

Re: XHTML Serializer block/Ajax: Bug

2007-03-19 Thread Joerg Heinicke
On 19.03.2007 17:37, Jason Johnston wrote: Well... sort of. When Firefox uses the XML parser the document gets parsed just fine, but then another problem arises when the Dojo libraries used by CForms AJAX tries to call document.write(), which is not allowed in the XHTML DOM. So you trade a pro

Re: XHTML Serializer block/Ajax: Bug

2007-03-19 Thread Jason Johnston
On Mon, 19 Mar 2007 15:28:10 + (UTC), Joerg Heinicke <[EMAIL PROTECTED]> wrote: > Andrew Madu gmail.com> writes: > >> Wouldn't xhtml serializer need to be fixed anyway, as anyone using it as >> serializer will still encounter the problems with javascript > irrespective of >> whether they are

Re: XHTML Serializer block/Ajax: Bug

2007-03-19 Thread Joerg Heinicke
Andrew Madu gmail.com> writes: > Wouldn't xhtml serializer need to be fixed anyway, as anyone using it as > serializer will still encounter the problems with javascript irrespective of > whether they are using ajax forms or not?!! Didn't you say in another thread it works as expected in Firefox

Re: XHTML Serializer block/Ajax: Bug

2007-03-19 Thread Andrew Madu
Hi Jason, Well since Jörg is so strongly against it, and I don't feel like swimming upstream against his opinion, I'm not going to bother. If you still feel like taking that on (both the code and the argument) feel free. Wouldn't xhtml serializer need to be fixed anyway, as anyone using it

Re: XHTML Serializer block/Ajax: Bug

2007-03-19 Thread Jason Johnston
Carsten Ziegeler wrote: Jason Johnston wrote: Carsten Ziegeler wrote: Actually I was too fast in answering :( Yes, I only fixed the html serializer and that fix is not appropriate for the xhtml. In html, the contents of the script tag is defined as a cdata section, therefore there should be no

Re: XHTML Serializer block/Ajax: Bug

2007-03-18 Thread Joerg Heinicke
On 17.03.2007 16:43, Jason Johnston wrote: If by "the lazy guys" you also mean Cocoon itself. For instance, the CForms forms-field-styling.xsl creates all its output in the null namespace, which is fine for regular HTML delivery but if for some reaason you do want to deliver as XHTML you have

Re: XHTML Serializer block/Ajax: Bug

2007-03-18 Thread Carsten Ziegeler
Jason Johnston wrote: > Carsten Ziegeler wrote: >> Actually I was too fast in answering :( >> >> Yes, I only fixed the html serializer and that fix is not appropriate >> for the xhtml. In html, the contents of the script tag is defined as a >> cdata section, therefore there should be no encoding in

Re: XHTML Serializer block/Ajax: Bug

2007-03-16 Thread Joerg Heinicke
(moving to dev list) On 16.03.2007 14:58, Jason Johnston wrote: Another option might be to wrap the contents of elements within a CDATA section so the JS could remain unencoded but it would still result in well-formed XML. I'm not sure how some browsers would hand

Re: XHTML Serializer block/Ajax: Bug

Carsten Ziegeler wrote: Actually I was too fast in answering :( Yes, I only fixed the html serializer and that fix is not appropriate for the xhtml. In html, the contents of the script tag is defined as a cdata section, therefore there should be no encoding inside the script. And that's what I f

Re: XHTML Serializer block/Ajax: Bug

Joerg Heinicke wrote: Jason Johnston lojjic.net> writes: The first issue is that XHTMLSerializer encodes all double-quotes in text content as ", which is of course absolutely valid XML/XHTML. Unfortunately, when an XHTML document is served up with a text/html mime-type, as you're doing, Fire

Re: XHTML Serializer block/Ajax: Bug

Hi Carsten, I definitly think that we should fix this in the serializer by adding a "/* */" before the script tag closes. Additionally no encoding inside the script tag (as with the html serializer). Does this make sense? Sounds good to me. I am of the opinion that ajax-request should be ro

Re: XHTML Serializer block/Ajax: Bug

Jason Johnston lojjic.net> writes: > The first issue is that XHTMLSerializer encodes all double-quotes in > text content as ", which is of course absolutely valid XML/XHTML. > Unfortunately, when an XHTML document is served up with a text/html > mime-type, as you're doing, Firefox doesn't actu

Re: XHTML Serializer block/Ajax: Bug

Actually I was too fast in answering :( Yes, I only fixed the html serializer and that fix is not appropriate for the xhtml. In html, the contents of the script tag is defined as a cdata section, therefore there should be no encoding inside the script. And that's what I fixed. With xhtml the conte

Re: XHTML Serializer block/Ajax: Bug

I've done some investigation. The first issue is that XHTMLSerializer encodes all double-quotes in text content as ", which is of course absolutely valid XML/XHTML. Unfortunately, when an XHTML document is served up with a text/html mime-type, as you're doing, Firefox doesn't actually parse th

Re: XHTML Serializer block/Ajax: Bug

Hi Jörg, Carsten fixed something in the HTMLSerializer, but changed nothing in the XHTMLSerialzer: Yes, I have seen the changes made by Carsten in HTMLSerializer: @version CVS $Id: HTMLSerializer.java 515096 2007-03-06 12:11:29Z cziegeler Changes to the XHTMLSerializer were made last by C

Re: XHTML Serializer block/Ajax: Bug

On 15.03.2007 18:43, Andrew Madu wrote: thanks for the link. I checked out the latest files from the address given, rebuilt cocoon, but the problem still remains. Carsten could you confirm with me where exactly your changed files are or even better could you send me the serializer.jar file? Ca

Re: XHTML Serializer block/Ajax: Bug

Hi Bertrand, https://svn.apache.org/repos/asf/cocoon/branches/BRANCH_2_1_X/ thanks for the link. I checked out the latest files from the address given, rebuilt cocoon, but the problem still remains. Carsten could you confirm with me where exactly your changed files are or even better could you

Re: XHTML Serializer block/Ajax: Bug

On 3/15/07, Andrew Madu <[EMAIL PROTECTED]> wrote: ...I have checked out the latest files from svn: https://svn.apache.org/repos/asf/cocoon/tags/cocoon-2.1/RELEASE_2_1_10/.. the latest 2.1.x code is available at https://svn.apache.org/repos/asf/cocoon/branches/BRANCH_2_1_X/ -Bertrand -

Re: XHTML Serializer block/Ajax: Bug

Hi Carsten, Yes, this is a bug in 2.1.10 - I have fixed it last week. You could either use the current xhtml serializer from svn or wait for the next release :) For a second there I was almost convinced that you had sent your reply even before I had sent my bug report! ;-) I have checked ou

Re: XHTML Serializer block/Ajax: Bug

Yes, this is a bug in 2.1.10 - I have fixed it last week. You could either use the current xhtml serializer from svn or wait for the next release :) Carsten Andrew Madu wrote: > Hi, > I would like to bring this to the attention of the cocoon membership. > Utilising the serializer block as seraliz

XHTML Serializer block/Ajax: Bug

Hi, I would like to bring this to the attention of the cocoon membership. Utilising the serializer block as seralizer of choice in an ajax-request block breaks the ajax process: