J
Joe Nine
I had a big page and I was getting an error. To make it easier to show
here and recreate I trimmed and trimmed until there was almost nothing
left but the error remains.
On IE8 and Opera 10 I get no errors. On Firefox 3.5, Safari 4 and Chrome
4 I get a different error on each. Here's the entire html page. As
you'll see I've removed tags and attributes that weren't relevant to the
problem so it's an absolute bare minimum.
<html>
<body>
<script>
document.write("<scr"+"ipt src=''><\/scr"+"ipt>");
</script>
</body>
</html>
Earlier it had a head section, the script tags had type on them and
there was a src URL for the script but none of that had anything to do
with the error so I left it out.
On XP/Firefox 3.5 I get: "invalid XML tag syntax" with an error pointing
to the first plus symbol.
On XP/Safari 4 I get: "Syntax Error: Parse Error"
On XP/Chrome 4 I get: "Uncaught SyntaxError: Unexpected token <"
In an earlier version, I had an extra line of code before the
document.write:
var abc;if(true){abc=true;}
When that's in (and remember that's trimmed and trimmed from what it
originally was, which wasn't just if(true)) instead of the errors
mentioned, I get a different error in Firefox. Instead I get "missing }
in XML expression" with an arrow pointing to the semi-colon after abc=true
here and recreate I trimmed and trimmed until there was almost nothing
left but the error remains.
On IE8 and Opera 10 I get no errors. On Firefox 3.5, Safari 4 and Chrome
4 I get a different error on each. Here's the entire html page. As
you'll see I've removed tags and attributes that weren't relevant to the
problem so it's an absolute bare minimum.
<html>
<body>
<script>
document.write("<scr"+"ipt src=''><\/scr"+"ipt>");
</script>
</body>
</html>
Earlier it had a head section, the script tags had type on them and
there was a src URL for the script but none of that had anything to do
with the error so I left it out.
On XP/Firefox 3.5 I get: "invalid XML tag syntax" with an error pointing
to the first plus symbol.
On XP/Safari 4 I get: "Syntax Error: Parse Error"
On XP/Chrome 4 I get: "Uncaught SyntaxError: Unexpected token <"
In an earlier version, I had an extra line of code before the
document.write:
var abc;if(true){abc=true;}
When that's in (and remember that's trimmed and trimmed from what it
originally was, which wasn't just if(true)) instead of the errors
mentioned, I get a different error in Firefox. Instead I get "missing }
in XML expression" with an arrow pointing to the semi-colon after abc=true