R
rynato
OK this may well be a stupid question but I am completely stumped:
I have a line of code that reads like this:
slideHTML+='<img src="'+this.postimages[picindex].src+'"
border="'+this.imageborder+'px" />';
when js writes out this bit of code, it appears like this when I look
at 'generated code' in Firefox:
<img src= [blah blah blah] >
which, of course, is parsed by the browser as a string of text rather
than as an HTML tag.
I tried using escape characters, I tried using unescape("%3C"), I
tried everything I could think of to get javascript to spit out a '<'
and a '>' instead of their HTML entities.
This is in an XHTML 1.1 document, and only appears in browsers which
apply XHTML rules rather strictly, like FF2 and Safari 3. IE6, bless
its black little heart, doesn't have a problem with it.
Any clues, anybody? Thanks in advance.
I have a line of code that reads like this:
slideHTML+='<img src="'+this.postimages[picindex].src+'"
border="'+this.imageborder+'px" />';
when js writes out this bit of code, it appears like this when I look
at 'generated code' in Firefox:
<img src= [blah blah blah] >
which, of course, is parsed by the browser as a string of text rather
than as an HTML tag.
I tried using escape characters, I tried using unescape("%3C"), I
tried everything I could think of to get javascript to spit out a '<'
and a '>' instead of their HTML entities.
This is in an XHTML 1.1 document, and only appears in browsers which
apply XHTML rules rather strictly, like FF2 and Safari 3. IE6, bless
its black little heart, doesn't have a problem with it.
Any clues, anybody? Thanks in advance.