News for hackers. Stuff that matters.
Re:If you're just going to sit there doing nothing, at least... by _gabe_ on Friday February 16, 2024 @11:45PM (#39406444)
Go type in:

  <p>Hello
  <br></br>
  World!
And see the errors that now show up because of the wisdom we gained… wait, it still renders alright? I guess we still have much to learn then. Or, there might be something to gracefully handling certain classes of errors while crashing on exceptional cases.
Re:If you're just going to sit there doing nothing, at least... by pests on Saturday February 17, 2024 @02:28PM (#39412598)
Not sure if you meant to use <p> as an example because it's well-defined as an optional closing tag.

This is a completely normal usage and some people even author their HTML like this. Granted this is part of the effort to standardize error handling.

That unclosed <p> will auto-close as soon as you start another paragraph or close it's parent element. Likewise this is how I do lists these days:

  <ul>
    <li> One
    <li> Two
  </ul>
The subsequent li's will close the previous and the bounding ul ends the last list item.