DEV Community

Discussion on: constructor() dynamic import()

Collapse
btopro profile image
Bryan Ollendyke Author

lol. Why yes I can! By gaslighting you completely and saying "but it really says this.innerHTML = sketchTag;". In this, we can see that you have found a mistype and I hope that now the update makes more sense :).

The point of sketchTag was simply the idea of another tag providing the advanced functionality. aaaannnnnd then I didn't actually set it to innerHTML (a horribly simplistic method of making this load) :)

Thanks for the note. Updated both doc blocks.

Collapse
dannyengelman profile image
Danny Engelman

Dont gaslight me, i fart pure alcohol. Code is wrong... your trying to stuff dom elements into a string

Thread Thread
btopro profile image
Bryan Ollendyke Author

The following code was always there, under every comment that was made, and has never been modified from it's original, posted below.

      let sketchTag = document.createElement("the-parrot-sketch");
      sketchTag.innerHTML = this.getAttribute("say");
      this.appendChild(sketchTag);
Enter fullscreen mode Exit fullscreen mode

room explodes