ficateItems extends HTMLElement {
  constructor(id, data) {
    super();
    this.id = id;
    this.data = data;
  }

  connectedCallback() {
    let template = document.getElementById("about-certificate-items-template");
    let templateHtml = template.content.cloneNode(true);

    this.attachShadow({ mode: "open" }).appendChild(templateHtml);

    document.l10n.connectRoot(this.shadowRoot);

    this.render();
  }

  render() {
    for (let cert of this.data) {
      this.shadowRoot.append(new ListItem(cert));
    }
  }
}
customElements.define("about-certificate-items", AboutCertificateItems);
PK