Re: Does <script src=foo> require an end tag </script>
:) Ok VK, point taken.
It's not my delusion/illusion actually, hence the thread. I have a user
complaining that our search robot is getting the contents of his page
wrong. He must think the page is working as he intends. I told him not,
but I would consult the wise and friendly experts. There is no other
source for his script. It's a whole gaggle of browser sniffing code
amongst
other things. He must be quite frustrated as to why it doesn't work :)
VK wrote:[color=blue]
> rhythmace@gmail .com wrote:[color=green]
> > Actually the browsers appear to be
> > smart about this and afaict they do interpret 2 script tags, not 1, so
> > they might have some heuristic.[/color]
>
> No they don't: it is your allusion. Probably you happened to have a
> variable/function you're checking against both in external file and in
> inline code.
>
> Any way: your syntax doesn't work (and cannot work), so please stop
> confusing potentional readers ;-) :-|
>
> A code to dismiss your allusion:
>
> // THIS SYNTAX IS INTENTIONALLY WRONG
> // FOR DEMONSTRATION PURPOSES
>
> <html>
> <head>
> <title>Test</title>
> <meta http-equiv="Content-Type"
> content="text/html; charset=iso-8859-1">
> <script type="text/javascript" src="foo.js" />
> <script type="text/javascript">
> var v = 1;
> </script>
> </head>
>
> <body onLoad="alert(t ypeof v)">
>
> </body>
> </html>
>
> // FF 1.5.0.1 : undefined
> // IE 6.0 : undefined
> // Opera 8.5 : undefined
> And for a sake of it:
> // NN 4.5 : undefined[/color]
:) Ok VK, point taken.
It's not my delusion/illusion actually, hence the thread. I have a user
complaining that our search robot is getting the contents of his page
wrong. He must think the page is working as he intends. I told him not,
but I would consult the wise and friendly experts. There is no other
source for his script. It's a whole gaggle of browser sniffing code
amongst
other things. He must be quite frustrated as to why it doesn't work :)
VK wrote:[color=blue]
> rhythmace@gmail .com wrote:[color=green]
> > Actually the browsers appear to be
> > smart about this and afaict they do interpret 2 script tags, not 1, so
> > they might have some heuristic.[/color]
>
> No they don't: it is your allusion. Probably you happened to have a
> variable/function you're checking against both in external file and in
> inline code.
>
> Any way: your syntax doesn't work (and cannot work), so please stop
> confusing potentional readers ;-) :-|
>
> A code to dismiss your allusion:
>
> // THIS SYNTAX IS INTENTIONALLY WRONG
> // FOR DEMONSTRATION PURPOSES
>
> <html>
> <head>
> <title>Test</title>
> <meta http-equiv="Content-Type"
> content="text/html; charset=iso-8859-1">
> <script type="text/javascript" src="foo.js" />
> <script type="text/javascript">
> var v = 1;
> </script>
> </head>
>
> <body onLoad="alert(t ypeof v)">
>
> </body>
> </html>
>
> // FF 1.5.0.1 : undefined
> // IE 6.0 : undefined
> // Opera 8.5 : undefined
> And for a sake of it:
> // NN 4.5 : undefined[/color]
Comment