On Fri, Jan 13, 2006 at 10:50:06PM +0100, Dan Jacobson wrote:
> Package: lynx-cur
> Version: 2.8.6-17
> Severity: wishlist
> 
> Today we look at
> $ lynx -source .|validate
> *** Errors: ***
> Error at line 1, character 1:  missing document type declaration; assuming
>         HTML 4.01 Transitional
> 
> No <HTML> tag too, bad?

no, it's the DOCTYPE that's missing.  Just for tidiness, I did add DOCTYPE
to some of the internal pages, but not others (probably those where the
file is normally written to disk - I see that the options menu has a
DOCTYPE).  The file browser is in memory (when source caching is enabled).
Lynx doesn't actually _use_ the picture that you see in the source view,
since it's using the parsed data that it uses to make the picture.

> <H2>Current directory is /tmp</H2>
> <H2></H2> <--why empty H2?
> <PRE>    drwxr-xr-x   23 root     root        1024 Dec 21 02:39 <A
> HREF="tmp/..">../</A></PRE>
> <PRE>... <-- why wasted opening and closing PRE on each line?!

It's generated (and not as bad as some generated text ;-)
 
> What's worse I suppose is
> $ lynx -source . > x.html
> $ lynx x.html
> None of the links can be accessed.

thanks - I hadn't noticed.  Actually it hadn't occurred to me that I could
use -source on an internal page like that, so I never ran that check.

-- 
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net

Attachment: pgpUnFE2DFr0Y.pgp
Description: PGP signature

Reply via email to