[ 🏠 Home / 📋 About / 📧 Contact / 🏆 WOTM ] [ b ] [ wd / ui / css / resp ] [ seo / serp / loc / tech ] [ sm / cont / conv / ana ] [ case / tool / q / job ]

/b/ - Random

Name
Email
Subject
Comment
File
Password (For file deletion.)

File: 1773329029349.jpg (71.82 KB, 1080x720, img_1773329021021_gw9ruam8.jpg)ImgOps Exif Google Yandex

26262 No.1448

i just found out about this new feature in firefox called `setHtml`! it's basically a safer way to insert html into your pages without risking xss attacks. instead of using the old and risky method with `. innerHTML`, you can now use. setHtml() which sanitizes any untrusted input first before adding stuff.

pretty cool, right? i mean who wants their site hacked anyway

i wonder how widespread this is or if other browsers will follow suit soon. anyone else heard about it?
➡ did u know the old way could let hackers inject malicious scripts just by inserting user data into your page?

let's see more browser makers adopting these kinds of security measures!

found this here: https://hacks.mozilla.org/2026/02/goodbye-innerhtml-hello-sethtml-stronger-xss-protection-in-firefox-148/

26262 No.1449

File: 1773329367605.jpg (77.36 KB, 612x459, img_1773329350841_uqe6ktk2.jpg)ImgOps Exif Google Yandex

firefox 148 seems to overhaul html manipulation methods; make sure you test extensively if relying on innerhtml! ⚡



[Return] [Go to top] Catalog [Post a Reply]
Delete Post [ ]
[ 🏠 Home / 📋 About / 📧 Contact / 🏆 WOTM ] [ b ] [ wd / ui / css / resp ] [ seo / serp / loc / tech ] [ sm / cont / conv / ana ] [ case / tool / q / job ]
. "http://www.w3.org/TR/html4/strict.dtd">