Maxim Dounin
December 10, 2018 12:36PM
Hello!

On Thu, Dec 06, 2018 at 06:42:23AM -0500, Andras Farkas wrote:

> On Wed, Nov 28, 2018 at 11:31 AM Maxim Dounin <mdounin@mdounin.ru> wrote:
> > Such a change will significantly modify typical rendering of error
> > pages, so I would rather refrain from it unless there are more
> > practical reasons than triggering standards-complaint mode instead
> > of quirks mode - which does no seem to make any difference for
> > pages nginx generates.
> Is having it render differently a bad thing? The meaning of any page
> changed still remains clear and easy to read. Invalid HTML (like
> <center>) is so easy to remove and to turn into valid HTML, I don't
> see why not to.

Well, it renders as it is now to make reading of error pages
easier. While changing rendering is certainly possible, this is
something usually justified by better rendering, not just
by switching to standards mode instead of quirks mode.

Note well that the "<center>" tag is valid HTML 3.2 tag. While it
was removed in HTML 5, it does not make it "invalid HTML". We can
even make returned HTML perfectly valid by explicitly returning
appropriate DOCTYPE (yet again there are no practical reasons to
do so, and this will make error pages bigger).

--
Maxim Dounin
http://mdounin.ru/
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

Patch to make 404 pages etc and autoindex pages use valid HTML

Andras Farkas 412 November 27, 2018 12:20AM

Re: Patch to make 404 pages etc and autoindex pages use valid HTML

Maxim Dounin 166 November 28, 2018 11:32AM

Re: Patch to make 404 pages etc and autoindex pages use valid HTML

Andras Farkas 164 December 06, 2018 06:44AM

Re: Patch to make 404 pages etc and autoindex pages use valid HTML

Maxim Dounin 142 December 10, 2018 12:36PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 179
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready