lynx-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Lynx-dev] XHTML thwarting


From: Bela Lubkin
Subject: Re: [Lynx-dev] XHTML thwarting
Date: Fri, 17 Sep 2004 17:36:33 -0700

Tom Dickey wrote:

> On Fri, 17 Sep 2004, Atsuhito KOHDA wrote:
> 
> > Thanks for your reply.
> >
> > From: Doug Kaufman <address@hidden>
> > Subject: Re: [Lynx-dev] XHTML thwarting
> > Date: Thu, 16 Sep 2004 20:19:49 -0700 (PDT)
> >
> > > > > In lynx one hits \ to see the source of
> > > > > http://women.alioth.debian.org/faqs/, but can't.
> > > > > Perhaps this is due to
> > > > > Content-Type: application/xhtml+xml;charset=iso-8859-1
> > > > >
> > > > > <?xml version="1.0" encoding="iso-8859-1" ?>
> > > > > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional/ etc. etc.
> > >
> > > I don't see this with lynx2.8.6dev.5 built under MingW or with
> > > lynx2.8.6dev.4 built with DJGPP. I can get the source without problem
> > > when I press the "\" key.
> >
> > Sorry, my explanation was not clear enough.  I thought
> > a reporter claimed that
> >
> > > But the headers that I get are different. I
> > > get "Content-Type: text/html;charset=iso-8859-1" and don't have the line
> > > with "<?xml ...> at all.
> >
> > the differnce you mentioned was a bug.
> >
> > If one neglected that diffenence, yes, we could say lynx
> > showed the source.
> 
> lynx is showing the source (comparing with opera which also starts with
> the doctype line).  If you download the page (with lynx), that line shows
> up in the HTTP headers, e.g.,
> 
> <!-- X-URL: http://women.alioth.debian.org/faqs/ -->
> <!-- Date: Fri, 17 Sep 2004 10:55:07 GMT -->
> <BASE HREF="http://women.alioth.debian.org/faqs/";>
> 
> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
> 
> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
> "http://www.w3.or
> <html lang="en">
> <head>

I think he's complaining that it doesn't show _xml_ source.  The missing
"aha!" here is that the _server_ is sending different pages, according
to the wishes of the browsers.  Opera tells it that "application/xml" is
an acceptable data type; Lynx doesn't.  The source sent to Lynx is
"text/html" because that's what Lynx offers to parse.

>Bela<




reply via email to

[Prev in Thread] Current Thread [Next in Thread]