• betterdeadthanreddit@lemmy.world
    link
    fedilink
    arrow-up
    27
    arrow-down
    1
    ·
    17 days ago

    Could bring that up with the devs but it hasn’t been the early 2000s for a long time, nobody seems to care as long as it works.

    • einkorn@feddit.org
      link
      fedilink
      arrow-up
      30
      arrow-down
      1
      ·
      17 days ago

      Which is a shame. Browser should be strict when rendering.

      • Multiple IDs with the same name? Jail!
      • Open tags? Jail!
      • Invalid order of tags? Believe it or not: Jail!
      • onehundredsixtynine@sh.itjust.worksOP
        link
        fedilink
        arrow-up
        8
        ·
        edit-2
        17 days ago

        Interesting fact: Firefox (or Gecko to be accurate, because there was no single “Firefox” browser back then - there was Netscape Navigator and Mozilla Application Suite) had such rendering mode, but it was quickly abandoned.[1]


        1. https://hsivonen.fi/doctype/: “In the summer of 2000 before Netscape 6 was released, Gecko actually had parser modes that enforced HTML syntax rules and one of these modes was called the “Strict DTD”. These modes were incompatible with existing Web content and were abandoned.”
      • Siru@discuss.tchncs.de
        link
        fedilink
        English
        arrow-up
        1
        ·
        edit-2
        12 days ago

        This wsa considered in the earlier days of the web, but then intentionally not enforced. HTML was specifically designed to not fall into the same scheme as most programming languages in that it should try to render what it could even if there was a lot going wrong (unlike most programming languages that try to fail fast).

        (And before someone comes after me for comparing HTML to programming languages, I am well aware that it is not Turing complete.)

    • ViatorOmnium@piefed.social
      link
      fedilink
      English
      arrow-up
      4
      ·
      edit-2
      17 days ago

      Works is different from works consistently across all browsers, or even versions of the same browser. I know most web developers got into their heads that only Chrome (and maybe Firefox if they are feeling generous) matters, but open source projects shouldn’t incentivise this.