this.titleNode.appendChild(document.createTextNode(this.title)); this.authorNode.appendChild(document.createTextNode(this.author)); this.descriptionNode.appendChild(document.createTextNode(this.description)); var href = document.createElement("a"); href.setAttribute("href", this.imageUrl); href.setAttribute("target", "_blank"); var imageTag = document.createElement("img"); imageTag.setAttribute("src", this.iconUrl); href.appendChild(imageTag); this.imageNode.appendChild(href);