from Hacker News

Show HN: Randomize HTML content to test your defensive CSS

by mathnmusic on 12/11/21, 8:15 AM with 10 comments

  • by claviska on 12/11/21, 12:02 PM

    This reminds me of Dan Cederholm’s Bulletproof Web Design, which coincidentally inspired me to adapt the paradigm to component development earlier this week.

    https://www.abeautifulsite.net/posts/bulletproof-components/

    Randomizing content is a great technique to test for this.

  • by SCHiM on 12/11/21, 5:53 PM

    Had you run this on old IE versions, you'd have made a decent fuzzer! If this program ever tries to put a table inside a button it'd have found a couple of crashes for sure.
  • by ratherlongname on 12/11/21, 12:02 PM

    Love cleartax, maybe I'm a bit biased because it was founded by one of my alumnus (from IITG).

    Always love seeing projects that indicate focus on code quality and better practices, esp. from Indian companies.

    It shows that despite the general culture of doing more in less, frugality, etc; still someone was able to focus on doing something right and making it open source too!

  • by indicate on 12/11/21, 5:15 PM

    This is similar to Chaos Engineering[0]

    [0] https://en.wikipedia.org/wiki/Chaos_engineering

  • by klysm on 12/11/21, 9:55 PM

    I like the idea of sampling the other side of your API in a stochastic manner. That concept seems widely applicable.
  • by oriettaxx on 12/11/21, 9:47 PM

    is this the first time randomization is applied to HTML?

    cool!