You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Marcus Crafter <cr...@fztig938.bank.dresdner.net> on 2001/10/17 15:32:01 UTC
[C2] HTMLSerializer, %values & Netscape ?
Hi All,
Hope all is well.
Recently, we've just noticed some interesting behaviour with the
HTML serializer.
<a href=".."/> tags are serialized with the 'href' attribute
being encoded with %num values replacing spaced, double quotes,
etc.
eg.
<a href="javascript:f('this is a test')"/>
comes out to the browser as:
<a href="javascript:f('this%20is%20a%20test')"/>
In IE this seems to be handled fine, but in Netscape and Mozilla there
are problems - the javascript interpreter registers a syntax error
with the above function call. Apparently, it doesn't convert the
%20's back into spaces. :-(
Has anyone seen this behaviour before ?
Cheers,
Marcus
--
.....
,,$$$$$$$$$, Marcus Crafter
;$' '$$$$: Computer Systems Engineer
$: $$$$: Managesoft GmbH
$ o_)$$$: 82-84 Mainzer Landstrasse
;$, _/\ &&:' 60327 Frankfurt Germany
' /( &&&
\_&&&&' Email : Marcus.Crafter@managesoft.com
&&&&. Business Hours : +49 69 9757 200
&&&&&&&:
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org
RE: [C2] HTMLSerializer, %values & Netscape ?
Posted by Klaus Bertram <be...@n-bis.de>.
Hi Marcus,
if you use the string as request parameter netscape must send it as
?PAR=this%20is%20a%20test
else try it with self.location.href=unescape(String)
I hope it helps
Klaus
> -----Original Message-----
> From: Marcus Crafter [mailto:crafterm@fztig938.bank.dresdner.net]
> Sent: Wednesday, October 17, 2001 3:32 PM
> To: Cocoon Developers Mailing List
> Subject: [C2] HTMLSerializer, %values & Netscape ?
>
>
> Hi All,
>
> Hope all is well.
>
> Recently, we've just noticed some interesting behaviour with the
> HTML serializer.
>
> <a href=".."/> tags are serialized with the 'href' attribute
> being encoded with %num values replacing spaced, double quotes,
> etc.
>
> eg.
>
> <a href="javascript:f('this is a test')"/>
>
> comes out to the browser as:
>
> <a href="javascript:f('this%20is%20a%20test')"/>
>
> In IE this seems to be handled fine, but in Netscape and
> Mozilla there
> are problems - the javascript interpreter registers a syntax error
> with the above function call. Apparently, it doesn't convert the
> %20's back into spaces. :-(
>
> Has anyone seen this behaviour before ?
>
> Cheers,
>
> Marcus
>
> --
> .....
> ,,$$$$$$$$$, Marcus Crafter
> ;$' '$$$$: Computer Systems Engineer
> $: $$$$: Managesoft GmbH
> $ o_)$$$: 82-84 Mainzer Landstrasse
> ;$, _/\ &&:' 60327 Frankfurt Germany
> ' /( &&&
> \_&&&&' Email : Marcus.Crafter@managesoft.com
> &&&&. Business Hours : +49 69 9757 200
> &&&&&&&:
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org