Re: "<base href=" bug?

Thomas Dickey <[email protected]>
Newsgroups gmane.comp.web.lynx.devel
Message-ID <[email protected]>
On Sat, Oct 30, 2021 at 08:08:35PM +0200, Gisle Vanem wrote:
> Downloading and building the latest (?)

not just the latest (in a quick check, 2.8.9rel.1 does the same)
so it doesn't appear to be a new problem.

>   ftp://ftp.invisible-island.net/lynx/tarballs/lynx2.9.0dev.10.zip
> 
> I discovered a simple:
>   <head>
>   <base href="./">
>   ...
> 
> fails to find a resource on the page.
> 
> Like on my page 'http://watt-32.net/dx/', Lynx believes all local
> links are at "..". E.g. the last is at:
>   http://watt-32.net/R-Amazonia-DRM-from-New-Carolina.png
> 
> Why?

no quick answer (I might have time to dig into this tomorrow)

I suspect that this chunk in the trace-file is what you're asking about:

HTParse:      result:`//watt-32.net'
HTParse: aName:`./'
   relatedName:`'
   want: punc path
HTParse: (REL)
HTParse:      result:`'
*HTML_BASE: final href=`http://watt-32.net/'

> No problem in other browsers.
> 
> -- 
> --gv
> 

-- 
Thomas E. Dickey <[email protected]>
https://invisible-island.net
ftp://ftp.invisible-island.net
signature.asc (application/pgp-signature, 659 B)
-----BEGIN PGP SIGNATURE-----

iQGzBAABCgAdFiEEGYgtkt2kxADCLA1WzCr0RyFnvgMFAmF9o8wACgkQzCr0RyFn
vgODUwv/aEUunBzttMkOR8qoNbb0win4xD6VekquuRXfmJO4WMmvuHUWEaXp7oNo
b4AH9JBOms34IxRiguiFuVVrrKwsin5FGpAUbZz1aP8wL4rGM+hEs7e4Q0ssYL2f
qqyQtfXJk4MGBZCnMV518B6V7bLrn86VQ8tR71IyYhuPQLlWxtPPFS1e5x3xrQ1v
/SmZ6dTh6KtvdWbxwcLxeljW3YPlkjvzTuW6AdB61wq0z2hH08OgOqwIWMI1W1JP
IhVME+l1njGZ3DaLsK/nEjlwn2MybYUypQXT30vH377V/WFVjn+Ranrz986Bokqk
EidUJBz43TisLdsqoyRXQYmTq7XOwwwKBKXOLtJ1YMBX74HnjdeMNs4AcwL6SAwy
XYGMFPKFMvGTbV+w/Km/oIa56M7I95xRnblVGgacUjN2GG/Eu4gng2XqZ9pSgDKZ
fHjkDWAEgaSPK74NgeYMqGaVwiZa6YLmbtfiyQOdXJDs3tj34yLWZ3VF8pqUIhVs
JKTnu1ui
=1nUH
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.