Re: &# in PARAM NAME causing problems
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.javascript archive

Re: &# in PARAM NAME causing problems

From: David Dorward <dorward@yahoo.com>
Date: Thu Aug 11 2005 - 23:47:22 CEST

Thomas Magma wrote:

> I have an application that generates a HTML document that contains an
> applet. It places raw data into the PARAM NAME tag. Well, once in a blue
> moon it places the numeric character reference &# into the data.

Which is invalid.

> One solution is to not let my original application generate the sequence
> &#

Fix it so it represents the sequence &# as &amp;#.

> however, this does not fix the HTML documents that have already been
> generated in the past.

Get a text editor that can do a global search and replace, then run it only
on files from before you fixed the generator.

> It would be nice to just fix the Java applet so it can import this raw
> data without having to recognize &# as a numeric character reference.

I suspect you'll find that the browser interprets &# and feeds the result to
the applet, the applet doesn't decode the raw markup.

-- 
David Dorward       <http://blog.dorward.me.uk/>   <http://dorward.me.uk/>
                     Home is where the ~/.bashrc is
Received on Tue Oct 18 03:07:52 2005