yoshuawuyts/html

Create a `CustomElement` definition

Open

#39 创建于 2023年4月17日

在 GitHub 查看
 (2 评论) (4 反应) (0 负责人)HTML (16 fork)github user discovery
enhancementhelp wanted

仓库指标

Star
 (254 star)
PR 合并指标
 (PR 指标待抓取)

描述

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

贡献者指南