lynx-dev
[Top][All Lists]
Advanced

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

Re: [Lynx-dev] lynx misrenders many *IN*valid xhtml5 pages on my site


From: Thorsten Glaser
Subject: Re: [Lynx-dev] lynx misrenders many *IN*valid xhtml5 pages on my site
Date: Mon, 12 Jun 2023 17:48:31 +0000 (UTC)

Shlomi Fish dixit:

>> > lynx 
>> > https://www.shlomifish.org/humour/Summerschool-at-the-NSA/ongoing-text.html
>> > still misrenders.

OK, I had a look at this now.

Your file is well-formed XML, but neither valid for webbrowsers
(due to the omission of the space before “/>” self-closing tags)
nor actually valid for any XHTML DTD because you self-close tags
that MUST NOT be self-closed.

A simple change of…

        <script src="../../js/main_all.js"/>

… to…

        <script src="../../js/main_all.js"></script>

… fixes the latter error and makes lynx display your file.

Please fix your website generator to make your pages actually valid:

<!-- only EMPTY tags are allowed to be self-closed:
     area base br col hr img input link meta param -->

All other tags MUST NOT be self-closed.

bye,
//mirabilos (who also uses XHTML and has, unfortunately, quite
    some experience with XML, XSLT, DTD etc. and ran into this
    particular problem once as well)
-- 
Yay for having to rewrite other people's Bash scripts because bash
suddenly stopped supporting the bash extensions they make use of
        -- Tonnerre Lombard in #nosec



reply via email to

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