From e92e70d8afe6166e0d7657c88e56cef002954a3b Mon Sep 17 00:00:00 2001 From: Javier Arce <4933+javierarce@users.noreply.github.com> Date: Sun, 1 Oct 2023 10:12:57 +0200 Subject: [PATCH] Test --- scripts/rss.reader.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/scripts/rss.reader.js b/scripts/rss.reader.js index 2630bf1ff..88d545512 100644 --- a/scripts/rss.reader.js +++ b/scripts/rss.reader.js @@ -23,7 +23,7 @@ class RSS extends HTMLElement { this.title = this.getAttribute("data-title") this.author = this.getAttribute("data-author") - const title = document.createElement('span') + const title = document.createElement('div') const blog = document.createElement('a') blog.textContent = this.title @@ -56,9 +56,6 @@ class RSS extends HTMLElement { render (data) { const lastEntry = data.entries[0] - const entry = document.createElement('span') - entry.part = 'post' - const entryDate = document.createElement('span') const ago = this.distance(Date.parse(lastEntry.published)) entryDate.textContent = ago ? ` ${ago} ago` : '' @@ -66,9 +63,6 @@ class RSS extends HTMLElement { const titleElement = this.shadow.querySelector('span'); titleElement.appendChild(entryDate) - - //entry.appendChild(entryDate) - //this.shadow.appendChild(entry) this.classList.add('is-loaded') }