14
inaba
6y

You know what really grinds my gears? HTML.

Specifically the fact that browsers report no errors at all when it comes to HTML. They just try their best to render what they're given and if you get unexpected results? Fuck you.

Comments
  • 1
    looool unfortunately true, now how would you know label is not showing anything until either someone finds it or users report it
  • 2
    @gitpush there's also the classic closing tag too late (or forgotten) which has a wide range of side effects depending on browser and os
  • 0
    @inaba one more reason on why I went as far away as I can from web dev stuff
  • 2
    This isn't even invalid html tho...
  • 1
    @olback what do you mean? Label has no prop called Password
  • 1
    @olback Some people would rather blame the system for their own problems.
  • 0
    Not sure why everyone is attacking OP, a > was mistakenly placed, and if that was done in a language like C# compiler would instantly complain. But for this, I don't think his eye will catch that > is placed in the wrong place especially it is a small detail in the line and not a big one
  • 1
    @gitpush No, it doesn't. There's no syntax errors so the browser doesn't care. I use custom attributes in my code and my linting tools and w3 validation doesn't complain.
  • 0
    That's why we got IDE's
  • 0
    @Artemix I believe HTML is the only markup language that does this. Markdown will just refuse to render the stuff you mistype, latex and xaml will give you a compiler error. It just seems weird to not at least give a warning

    @AlexDeLarge I have a nice linter plugin for firefox actually which catches runtime errors
  • 0
    @Artemix Pretty much all of them, though it depends how liberal they decide to be. (Also it's kinda hard to fuck markdown up tbh)

    Like if try ~~Hello World in markdown you'll get literally that, but if you type <i>Hello World in HTML you get Hello World in italics. There's also stuff like

    1. Hello
    1.World

    which in (most flavours (don't quote me on that)) produce 1. Hello 1.World, but if you do this in HTML

    <ol>
    <li>Hello
    <li>World
    </ol>

    the missing tags will be autocorrected. There's also the other stuff, like browsers ignoring if you have multiple id's with the same name and stuff. The fact that the developer doesn't get an "invalid usage" or a warning or something similar without installing an extension seems mightily silly to me.
  • 0
    @Artemix Of course there do, that's why I have a firefox extension for it. But that doesn't mean I wouldn't mind the browser to show errors instead
Add Comment