node-red / node-red

Low-code programming for event-driven applications
http://nodered.org
Apache License 2.0
18.93k stars 3.31k forks source link

fix(editor): remove trailing slash #4735

Closed Rotzbua closed 3 weeks ago

Rotzbua commented 3 weeks ago

Proposed changes

Remove the trailing slash from meta (void) elements.

Background

HTML5 has its own syntax and is not XHTML as is often mistaken. For tags which do not allow child elements aka as void element, it is not allowed to use a trailing slash. In practice, however, this is not a problem due to the browser's excellent error tolerance.

Since different code styles are used in the head, this is a standardization to the formally “correct” style.

Validator to test: https://validator.w3.org/nu/

Checklist