News for hackers. Stuff that matters.
Re:Goodbye InnerHTML, Hello SetHTML: Stronger XSS Protection... by chrisweekly on Tuesday February 24, 2026 @12:53PM (#47140200)
> "ES6 being too new to be standard knowledge"

Huh? It's been a decade.

Re:Goodbye InnerHTML, Hello SetHTML: Stronger XSS Protection... by Aachen on Wednesday February 25, 2026 @08:29AM (#47151211)
Exactly, I learned coding JS before 2015 (it was my first language, picked up during what is probably called middle school in english). I haven't had to learn it again from scratch, so I need to go out of my way to find if there is maybe a better way to do the thing I can already do fine. It's not automatic knowledge, yet the LLM seems to have no trouble with it, so I'm pointing out that they seem to not have problems upgrading. The grandparent comment suggested it would need to be trained anew to use this new method instead. Given how much old (non-ES6) JS there is, apparently it gets it quite easily so any update that includes some amount of this new code will probably do it just fine