news.volyx.in

How to manage HTML DOM with vanilla JavaScript only? (htmldom.dev)

1149 points by velmu · 2380 days ago · 515 comments on HN

Article summary

The article discusses managing HTML DOM with vanilla JavaScript, but its content is not available. The comments section reveals that the article likely provides a list of methods for selecting elements and performing other DOM-related tasks. Commenters find the resource useful, but some point out oversights and areas for improvement. The discussion also touches on the importance of understanding the fundamentals of JavaScript and the DOM.

Main themes

  • vanilla JavaScript
  • DOM management
  • learning resources
  • browser compatibility
  • frameworks vs vanilla JS
  • web development best practices

What commenters say

  • The article's list of methods for managing the HTML DOM is useful, but it should be ordered in a way that makes sense for learning.
  • Some commenters find the article's examples incomplete or unclear, particularly for beginners.
  • The use of vanilla JavaScript is preferred by some for its simplicity and lack of overhead, but others argue that frameworks like React can be useful in certain situations.
  • The article's website itself uses React and a significant amount of JavaScript, which some see as ironic or unnecessary.
  • Support for older browsers like IE 11 is a concern for some commenters, who suggest using polyfills or shims to ensure compatibility.
  • Others argue that dropping support for older browsers can be a viable option, depending on the specific use case and requirements.
  • The importance of understanding the fundamentals of JavaScript and the DOM is emphasized by many commenters, who see this as essential for working effectively with vanilla JavaScript.