MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1xedqka/waitingforhtmlvulnerability/19rmtn50kf537/
r/ProgrammerHumor • u/chiya_coffee • Oct 24 '26
145 comments sorted by
View all comments
Show parent comment
3
Parsing is not that complex, I can do it in one afternoon out of memory w/o reading an rfc.
The hard part is truly, rendering
3 u/Stummi Oct 25 '26 I kinda doubt that. You are probably grossly underestimating the complexity of HTML to do such a statement. Even parsing is hard 2 u/ArjixGamer Oct 25 '26 No, it's just that I've done it thrice before.Sure I may not have aimed for 100% compliance with the spec, but I could parse it, manipulate it via my fake DOM and serialize it.The "hard" part is the edge cases, which aren't hard, you just have to know them before they hit you. (or just read the spec)I think parsing CSS is way more complex. 1 u/Stummi Oct 25 '26 Just to be sure, we are talking about the HTML5 standard, right? Or did you mean one of the earlier HTML versions, or XHTML? 3 u/ArjixGamer Oct 25 '26 HTML5 yesWriting a parser like jsoup or bs4 is not hard
I kinda doubt that. You are probably grossly underestimating the complexity of HTML to do such a statement. Even parsing is hard
2 u/ArjixGamer Oct 25 '26 No, it's just that I've done it thrice before.Sure I may not have aimed for 100% compliance with the spec, but I could parse it, manipulate it via my fake DOM and serialize it.The "hard" part is the edge cases, which aren't hard, you just have to know them before they hit you. (or just read the spec)I think parsing CSS is way more complex. 1 u/Stummi Oct 25 '26 Just to be sure, we are talking about the HTML5 standard, right? Or did you mean one of the earlier HTML versions, or XHTML? 3 u/ArjixGamer Oct 25 '26 HTML5 yesWriting a parser like jsoup or bs4 is not hard
2
No, it's just that I've done it thrice before.
Sure I may not have aimed for 100% compliance with the spec, but I could parse it, manipulate it via my fake DOM and serialize it.
The "hard" part is the edge cases, which aren't hard, you just have to know them before they hit you. (or just read the spec)
I think parsing CSS is way more complex.
1 u/Stummi Oct 25 '26 Just to be sure, we are talking about the HTML5 standard, right? Or did you mean one of the earlier HTML versions, or XHTML? 3 u/ArjixGamer Oct 25 '26 HTML5 yesWriting a parser like jsoup or bs4 is not hard
1
Just to be sure, we are talking about the HTML5 standard, right? Or did you mean one of the earlier HTML versions, or XHTML?
3 u/ArjixGamer Oct 25 '26 HTML5 yesWriting a parser like jsoup or bs4 is not hard
HTML5 yes
Writing a parser like jsoup or bs4 is not hard
View all comments
Show parent comment
3
u/ArjixGamer Oct 25 '26
Parsing is not that complex, I can do it in one afternoon out of memory w/o reading an rfc.
The hard part is truly, rendering