phuocng/html-dom

Common tasks of managing HTML DOM with vanilla JavaScript. Give me 1 ⭐if it’s useful.

MDX

6,511

553 commits

updated Jun 6, 2024

See the code

README

HTML DOM

Story

Web development goes very fast. I still remember the moments when starting to use jQuery, Prototype, script.aculo.us, Zepto and many more.

Nowadays, even if our application is powered by modern tools such as Angular, Vue, React, Svelte, .etc, we have to deal with DOM. The frameworks encapsulate and hide the DOM management directly, but still give us a door to work with DOM via ref, event handlers.

If you develop or use a web component in any framework, you have to work with DOM at a certain level.

Knowing the browser DOM APIs and how to use them play an important role in web development. A website introducing the APIs, well-known problems, most popular questions could be very useful.

Features

  • No external library. Only native browsers' APIs
  • Small and easy to understand examples
  • Live demos
  • Many tips and good practices included
  • Many real use cases
  • Work with the modern browsers. Try to support Internet Explorer

About

This project is developed by Nguyen Huu Phuoc. I love building products and sharing knowledge.

Be my friend on

document-object-model
dom
dom-api
dom-manipulation
html
javascript
typescript

phuocng/html-dom

Common tasks of managing HTML DOM with vanilla JavaScript. Give me 1 ⭐if it’s useful.

MDX

6,511

553 commits

updated Jun 6, 2024

See the code

README

HTML DOM

Story

Web development goes very fast. I still remember the moments when starting to use jQuery, Prototype, script.aculo.us, Zepto and many more.

Nowadays, even if our application is powered by modern tools such as Angular, Vue, React, Svelte, .etc, we have to deal with DOM. The frameworks encapsulate and hide the DOM management directly, but still give us a door to work with DOM via ref, event handlers.

If you develop or use a web component in any framework, you have to work with DOM at a certain level.

Knowing the browser DOM APIs and how to use them play an important role in web development. A website introducing the APIs, well-known problems, most popular questions could be very useful.

Features

  • No external library. Only native browsers' APIs
  • Small and easy to understand examples
  • Live demos
  • Many tips and good practices included
  • Many real use cases
  • Work with the modern browsers. Try to support Internet Explorer

About

This project is developed by Nguyen Huu Phuoc. I love building products and sharing knowledge.

Be my friend on

document-object-model
dom
dom-api
dom-manipulation
html
javascript
typescript

Significant stargazers

(top 24 of 46)

Adam Johnson

3,982 followers · starred Mar 2020

Hayden Bleasel

1,553 followers · starred Jul 2021

Tomáš Janoušek

159 followers · starred Nov 2023

Andrew Lisowski

431 followers · starred Apr 2020