fregante / fregante/abort-utils

DOM utils

Open
#12 0 comments 0 reactions 0 assignees View on GitHub
enhancement help wanted
Dominant language
TypeScript
Stars
162
Forks
1
PR merge metrics
No merged PRs in 30d

Description

Not sure if it's worth creating a new package for this but:

- `addClasses(element, ['class'], {signal})`
- `appendElement(element, child, {signal})`

The latter might be easier to use as:

```js
element.append(child);
onAbort(signal, element) // after I add support for .remove()
```

Maybe `abortable-dom`?

Contributor guide

No contributing guide indexed for this repository

Research direction

The issue names no files, tests, or entry points. Start by reviewing the existing abort-utils API and clarifying whether these DOM helpers belong in this package or a new one. Done means the package boundary and the proposed abortable DOM API have been agreed before implementation begins.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend, web-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.