r/ProgrammerHumor • • Oct 24 '26

Meme waitingForHtmlVulnerability

Post image
6.7k Upvotes

145 comments sorted by

View all comments

37

u/frikilinux2 Oct 24 '26

Jokes aside parsing modern HTML and rendering the DOM with the css is so hard that there are like 4 or 5 modern implementations and most of the world uses 1. Even with all the browsers there are

16

u/frikilinux2 Oct 24 '26

And browsers have had several CVEs a week since basically forever

6

u/Narfi1 Oct 24 '26

Yeah HTML engines are insanely hard, ladybird is the only current project that seems to be going actually somewhere

5

u/Stratimus Oct 24 '26

And also for real, it is for the best that there are so few browser engines.

Those of you who didn’t live through the era of IE5-7 may not even be able to comprehend what it was like when even different versions of the same browser had wildly different implementations

16

u/Sw429 Oct 24 '26

There are pros and cons for sure, but I don't think that Google being central to the vast majority of web browsers is "for the best."

4

u/coriolis7 Oct 24 '26

Isn’t the whole reason why paid antivirus was a huge industry was because IE existed?

1

u/Sheerkal Oct 25 '26

I'm confused as to why you would think this. 

1

u/AsyncSyscall Oct 25 '26

It's not "hard", it's very well specified and documented, you can pretty much just copy-paste the spec into code. The problem is that the spec is huge, with lots of interconnected parts, legacy edge cases, and constantly changing to support new features. And real-world implementations eventually have to deviate from the spec algorithms for performance reasons.

1

u/frikilinux2 Oct 25 '26

Ok, so it's hard doing it correctly fast..