question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Insert Closing slash

See original GitHub issue

Bug report

hi bro I noticed that this plugin does not put the final slash when linking the css file to the head!! IMG_20220808_194044_891

Actual Behavior

Expected Behavior

How Do We Reproduce?

Please paste the results of npx webpack-cli info here, and mention other relevant information

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
alexander-akaitcommented, Aug 10, 2022

XHTML is deprecated and is not reccomend (w3 and whatwg) to use (except when you are implementing something for really legacy systems). Most of browsers use html5 spec parser, so my opinion is not to use XHTML. Even more your code is not XHTML valid so you still will have validations problems (and even problems with parser and probably your content will not render as you expceted).

1reaction
alexander-akaitcommented, Aug 10, 2022

Your doctype is not xhtml, your doctype is HTML5, look at your source code

Read more comments on GitHub >

github_iconTop Results From Across the Web

Should I add a slash to self-closing HTML tags like `img` and ...
Adding the closing /> is still valid, and in my personal opinion (only personal), it may get deprecated in a near future.
Read more >
closing input tags with /> or just >??? - Codecademy
Notice that the input field doesn't have a closing tag. Instead it ends with a space and a forward slash. but in the...
Read more >
Should you, or should you NOT, close HTML void elements ...
Should you, or should you NOT, close HTML void elements/self-closing tags with a forward slash? Hello! Thanks for taking the time to read...
Read more >
JSX: Space inserted before slash in self-closing elements #1985
The trend where people put a space before the ending slash started years ago before browsers (Netscape 4?) understood the slash, ...
Read more >
Tags - E 115: Introduction to Computing Environments
A tag can be used to insert an image, a link, a paragraph of text, a navigation bar, ... The closing tag looks...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found