W3C home > Mailing lists > Public > www-validator@w3.org > October 2022

Re: Self closing tag error message

From: Chuck Houpt <chuck@habilis.net>
Date: Mon, 3 Oct 2022 15:58:59 -0400
Cc: W3C WWW Validator <www-validator@w3.org>, Jon Storslee <jon.storslee@paradisevalley.edu>
Message-Id: <1062F5B7-05A9-41B7-88C7-6ACB39280F2F@habilis.net>
To: "Jukka K. Korpela" <jukkakk@gmail.com>
>> On Sep 29, 2022, at 2:41 PM, Jukka K. Korpela <jukkakk@gmail.com> wrote:
>> Is there a rationale for this?

Digging a little deeper and it looks like the change was prompted by MDN's recent use of the "Prettier" formatting tool, which always adds self-closing tags. In mid-September, most MDN example code changed to use self-closing tags. For example, compare:


Discussions are ongoing and there's a WHATWG pull-requests on the topic:


Reading between the lines, it seems like the ultimate rational for the validator change is to "convince" MDN (and maybe Prettier) to switch back to HTML with no self-closing tags.

- Chuck
Received on Monday, 3 October 2022 19:59:17 UTC

This archive was generated by hypermail 2.4.0 : Monday, 3 October 2022 19:59:17 UTC