class CustomFooter extends HTMLElement { connectedCallback() { this.attachShadow({ mode: 'open' }); this.shadowRoot.innerHTML = ` `; // Set current year const yearElement = this.shadowRoot.querySelector('[data-year]'); if (yearElement) { yearElement.textContent = new Date().getFullYear(); } } } customElements.define('custom-footer', CustomFooter);