News for hackers. Stuff that matters.
Re:Goodbye InnerHTML, Hello SetHTML: Stronger XSS Protection... by joquarky on Tuesday February 24, 2026 @08:56PM (#47146333)
> need innerHTML

parent.appendChild(document.createElement(tag))

Re:Goodbye InnerHTML, Hello SetHTML: Stronger XSS Protection... by iLoveOncall on Wednesday February 25, 2026 @03:32AM (#47148897)
How is adding an element to the parent the same as replacing all the content of the element? You guys are exhausting. Think a bit before spouting nonsense?