oelna / hsma-html

Kursmaterialien für meinen Kurs Offenes Projekt: HTML aka. "VSTG" an der Hochschule Mannheim
7 stars 0 forks source link

DOM libraries and jQuery replacements #67

Open oelna opened 4 years ago

oelna commented 4 years ago
oelna commented 4 years ago

bulk operations for DOM nodes https://twitter.com/LeaVerou/status/1328297703332323329

const elements = document.querySelectorAll('.foo')

[...elements].forEach(el => Object.assign(el, attributes))
oelna commented 2 years ago

Alternatives available as ESM