mattdesl / mattdesl/dom-css

multiple elements support (nodeList)

Open
#8 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
152
Forks
13
PR merge metrics
No merged PRs in 30d

Description

hi matt,
i was wondering, is there a possibility to support the `nodeList` as the params' `element`?

i.e:

``` javascript
css(document.querySelectorAll('.el'), 'width', '200px')
```

otherwise i guess i'll just do a simple `forEach` but it'd be great to be able to pass a `nodeList` or `array` directly. let me know what you think!

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at the css(...) entry point and inspect how the params' element is handled. Verify behavior with document.querySelectorAll('.el') and an array; done means both can style multiple elements without requiring a caller-side forEach.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.