diff --git a/component.js b/component.js index f65d5a2..c46a003 100644 --- a/component.js +++ b/component.js @@ -1,17 +1,24 @@ -class MyComponent extends HTMLElement { +class Pet extends HTMLElement { constructor() { super(); const shadow = this.attachShadow({ mode: 'closed' }); const root = document.createElement('section'); + + const name = this.getAttribute('name') + root.innerHTML = ` -