[links-list] Re: Cookies

Witold Filipczyk juandon at poczta.onet.pl
Fri May 3 15:02:19 PDT 2002


On Fri, May 03, 2002 at 11:41:17PM +0200, Jonas Fonseca wrote:
> On Fri, May 03, 2002 at 10:48:53PM +0200, clemensF wrote:
> > > Rohit Mediratta:
> > 
> > > Surprisingly lynx can display the site!!
> > 
> > this is not because lynx does javascript, it doesn't.  there must be some
> > ALT tags or NOSCRIPT tags that do the trick.
> 
> I think I've found the problem. :)
> But not the solution :(
> 
> jonas at emma:~ > links -source www.hotjobs.com > hotjobs.orig.html
> jonas at emma:~ > cp hotjobs.orig.html hotjobs.changed.html
> 
> I then change 2 lines ... and diffing gives me ...
> 
> jonas at emma:~ > diff -u hotjobs.orig.html hotjobs.changed.html
> --- hotjobs.orig.html   Fri May  3 23:18:10 2002
> +++ hotjobs.changed.html        Fri May  3 23:16:50 2002
> @@ -87,9 +87,9 @@
>  <!--##OUTER TABLE##--><tr>
>  <script>
>  if ((parseInt(navigator.appVersion) >= 5) && (navigator.appName == "Netscape"))
> -       document.write('<td height="95%" valign="top">')
> +       document.write('')
>  else
> -       document.write('<td height="100%" valign="top">');
> +       document.write('');
>  </script>
>  <noscript><td height="100%" valign="top"></noscript>
> 		       
> ... and links displays the page just fine.
> 
> I agree this piece of html code is not a pretty sight ;)
> but it looks like the parser is not ignoring code inside 
> the <script> tag like it should. 
> 
> This is with the latest elinks cvs snapshot as is 
> (that's no contrib/ javascript hacks ;).

Workaround:
In elinks-hooks.lua in pre_format_html_hook
add two lines:
html = gsub (html, "<script>.-</script>", "", 1)
ret = 1

Witek
-- 
Unsubscribe: send email to links-list-request at linuxfromscratch.org
and put unsubscribe in the subject header of the message



More information about the links-list mailing list