yoshuawuyts/html

Create a `CustomElement` definition

Open

#39 opened on Apr 17, 2023

View on GitHub
 (2 comments) (4 reactions) (0 assignees)HTML (16 forks)github user discovery
enhancementhelp wanted

Repository metrics

Stars
 (254 stars)
PR merge metrics
 (PR metrics pending)

Description

It should be possible to define <custom-element></custom-element> elements, and append them to other elements. We probably need to:

  1. Define a new CustomElement type
  2. Give it a constructor which takes a name
  3. Enable it to define custom attributes
  4. Enable all existing elements which have children to also take a CustomElement as a child

Contributor guide