L
Lorenzo Bettini
Hi
on the same page I set the innerHTML property of an element to something
like
my_string + "<br />"
then when I try to remove my_string + "<br />" from the innerHTML it
fails since the "<br />" is not found.
after some debugging I found out that the innerHTML actually contains:
my_string + "<br>"
This happens in Firefox... in Konqueror it's even different:
my_string + "<BR>"
is this the expected behavior (i.e., browser dependent)... is there a
way to find out how <br> is actually stored into an innerHTML?
Or is what I'm trying to do a design error?
thanks in advance
Lorenzo
--
Lorenzo Bettini, PhD in Computer Science, DSI, Univ. di Firenze
ICQ# lbetto, 16080134 (GNU/Linux User # 158233)
HOME: http://www.lorenzobettini.it MUSIC: http://www.purplesucker.com
BLOGS: http://tronprog.blogspot.com http://longlivemusic.blogspot.com
http://www.gnu.org/software/src-highlite
http://www.gnu.org/software/gengetopt
http://www.gnu.org/software/gengen http://doublecpp.sourceforge.net
on the same page I set the innerHTML property of an element to something
like
my_string + "<br />"
then when I try to remove my_string + "<br />" from the innerHTML it
fails since the "<br />" is not found.
after some debugging I found out that the innerHTML actually contains:
my_string + "<br>"
This happens in Firefox... in Konqueror it's even different:
my_string + "<BR>"
is this the expected behavior (i.e., browser dependent)... is there a
way to find out how <br> is actually stored into an innerHTML?
Or is what I'm trying to do a design error?
thanks in advance
Lorenzo
--
Lorenzo Bettini, PhD in Computer Science, DSI, Univ. di Firenze
ICQ# lbetto, 16080134 (GNU/Linux User # 158233)
HOME: http://www.lorenzobettini.it MUSIC: http://www.purplesucker.com
BLOGS: http://tronprog.blogspot.com http://longlivemusic.blogspot.com
http://www.gnu.org/software/src-highlite
http://www.gnu.org/software/gengetopt
http://www.gnu.org/software/gengen http://doublecpp.sourceforge.net