I made something to try out for “funtional webcomponents” with vanillaJs. I’m working towards a UI framework for my personal projects. It’s far from finished but i thought it might be an interesting concept to share.

  • sorter_plainview
    link
    fedilink
    arrow-up
    4
    ·
    6 days ago

    Isn’t ‘innerHTML’ considered unsafe? Can someone with subject knowledge please explain.

    • Solemarc@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      5 days ago

      MDN says you’re right because innerHTML is un-escaped and you’re probably trying to use textContent. Didn’t know about this one, thanks.