Re: lynx misrenders many *IN*valid xhtml5 pages on my site

Thorsten Glaser <[email protected]>
Newsgroups gmane.comp.web.lynx.devel
Message-ID <[email protected]>
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
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.