When using the code snippet editor, and you want to add an external library by clicking on that button, it automatically adds a closing slash when it inserts a <link>
tag. However, in HTML, a closing slash is not specified (though it's allowed for backward compatibility reasons only).
Note that the <link>
tag is also a void element Void elements are those which contain no content, which the link element is. So
there may be a single U+002F SOLIDUS character (/) https://html.spec.whatwg.org/dev/syntax.html#start-tags
However
This character has no effect
Stack Overflow editors should follow the HTML standard for the link tag where you will see no closing slash is specified by the wording and is not shown by any example. Closing slashes for HTML have never been specified in any HTML spec.
head
andheader
, this is pretty low priority. First we should look at updating the console with canon's latest code, then do something about multi-file setups, then something about faking ajax, then allow the use of babel/TypeScript/SASS/LESS/etc., then a switch for auto-tidy on post. Then maybe we can talk about removing a character that does nothing when present in code.var link = '<link href="' + url + '" rel="stylesheet"/>';
can be changed tovar link = '<link href="' + url + '" rel="stylesheet">';
, done, no other consideration necessary, which is much less than most bugs require