diff --git a/editable-list/main.js b/editable-list/main.js index b3d260e..97f5c20 100644 --- a/editable-list/main.js +++ b/editable-list/main.js @@ -22,36 +22,64 @@ editableListContainer.classList.add('editable-list'); // creating the inner HTML of the editable list element - editableListContainer.innerHTML = ` - -

${title}

- -
- - - -
- `; + editableListContainer.replaceChildren(); // clear safely + + //

+ const heading = document.createElement('h3'); + heading.textContent = title; + + //