Hacker News new | ask | show | jobs
by sureglymop 33 days ago
I'd much rather have something that behaves like:

    <if js is available>
      ...
    <else>
      ...
    <the closing tag i guess/>
2 comments

Is that really any simpler or clearer than:

  <script>
    ...
  </script>
  <noscript>
    ...
  </noscript>
I think something like:

    <script src="..." id="bla></script>
    <noscript for="bla">Script not loaded</noscript>
Would be more flexible, and would be consistent with how labels, datalists, etc. are linked to their element.
Yes! That's what I meant. Wasn't able to express it clearly but you did :)