Skip to content

DOM utils #12

@fregante

Description

@fregante

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:

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

Maybe abortable-dom?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions