• einkorn@feddit.org
      link
      fedilink
      arrow-up
      0
      arrow-down
      1
      ·
      20 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!
      • Siru@discuss.tchncs.de
        link
        fedilink
        English
        arrow-up
        1
        ·
        edit-2
        15 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.)