Re: Self closing tag error message

>> 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:

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link
https://web.archive.org/web/20220914093040/https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link

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

https://github.com/orgs/mdn/discussions/242
https://github.com/whatwg/html/pull/8338

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