News for hackers. Stuff that matters.
Re:Named element IDs can be referenced as JavaScript globals by dphnx on Tuesday September 27, 2022 @12:27PM (#32997556)
`document.all` can be used in this way:

  <div id="foo"></div>
  <script>
    const { foo } = document.all
    // do something with foo
  </script>
Don't use it though, it's deprecated as well[1].

[1]: https://developer.mozilla.org/en-US/docs/Web/API/Document/al...

There are no comments on this comment yet.