wget stumbled upon the following HTML file:

------- >8 --------
<html>
<head>
<title>foo</title>
</head>

<body>

<SCRIPT language="JavaScript1.2">
var sitems=new Array()
var sitemlinks=new Array()

///////////Edit below/////////////////////////////////

//extend or shorten this list
sitems[0]="15.html"
sitems[1]="16.html"
sitems[2]="17.html"
sitems[3]="18.html"
sitems[4]="19.html"
sitems[5]="20.html"
sitems[6]="21.html"
sitems[7]="22.html"
sitems[8]="23.html"
sitems[9]="24.html"
sitems[10]="25.html"
sitems[11]="26.html"
sitems[12]="27.html"


//These are the links pertaining to the above text.
sitemlinks[0]="31.html"
sitemlinks[1]="32.html"
sitemlinks[2]="33.html"
sitemlinks[3]="34.html"
sitemlinks[4]="35.html"
sitemlinks[5]="36.html"
sitemlinks[6]="37.html"
sitemlinks[7]="38.html"
sitemlinks[8]="39.html"
sitemlinks[9]="40.html"
sitemlinks[10]="41.html"
sitemlinks[11]="42.html"
sitemlinks[12]="43.html"

//If you want the links to load in another frame/window, specify name of
//target (ie: target="_new")
var target=""

for (i=0;i<=sitems.length-1;i++)
document.write('<a href='+sitemlinks[i]+'
target="'+target+'">'+sitems[i]+'</a><br>')

</SCRIPT>
<NOSCRIPT>
Congratulations, you have turned off JavaScript.
</NOSCRIPT>
</body>

</html>
------- >8 --------

I see that wget handles <SCRIPT> with tag_find_urls, i.e. it tries to
parse whatever it's inside.
Why was this implemented ? JavaScript is most
used to construct links programmatically. wget is likely to find
bogus URLs until it can properly parse JavaScript.

--
Csaba R�duly, Software Engineer                           Sophos Anti-Virus
email: [EMAIL PROTECTED]                        http://www.sophos.com
US Support: +1 888 SOPHOS 9                     UK Support: +44 1235 559933


Reply via email to