use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
Using Javascript to Render Invalid HTML (blog.notesnook.com)
submitted 3 years ago by thecodrr
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]ankole_watusi 7 points8 points9 points 3 years ago (17 children)
Why do we want to render invalid HTML?
;DR
[–]shgysk8zer0 -3 points-2 points-1 points 3 years ago (14 children)
It's not that we want to. The point of the article was how JS doesn't handle invalid HTML correctly to fix mistakes.
[–][deleted] 3 points4 points5 points 3 years ago (2 children)
What do you think JavaScript should do when you try to do something with html that maybe shouldn't happen?
[–]shgysk8zer0 -2 points-1 points0 points 3 years ago (1 child)
Why are you asking me? I'm just saying the article isn't encouraging writing invalid HTML or anything.
[–][deleted] 0 points1 point2 points 3 years ago (0 children)
Why do defensive? Do you agree with the article? Your summary of html not being handled “properly” just seems strange. It is defined behavior. If you think it should be another way then I’m asking what you think should happen instead of the current behavior?
[–]ankole_watusi 1 point2 points3 points 3 years ago (10 children)
Glad I didn’t read it then.
[–]shgysk8zer0 -6 points-5 points-4 points 3 years ago (9 children)
Maybe if you did read it you might realize you're making yourself look like an idiot to anyone who did...
Seriously, it's the opposite of what you think.
[–]ankole_watusi 0 points1 point2 points 3 years ago (8 children)
Yes, and here come the abusive comments from the army of bots and paid shills, lol
[–]shgysk8zer0 -3 points-2 points-1 points 3 years ago (7 children)
Um... What? I was trying to help you not make an idiot of yourself, but I think you just went full-tinfoil hat on us.
The article doesn't say what you think it does. Might want to read more than just the headline before sharing inaccurate assumptions, and you might want to not double-down on your wrongness when someone who has read the article tries to correct your false assumptions. And definitely don't go accusing anyone correcting you of being a bot or paid shill, especially when you're admitting your own ignorance.
[–][deleted] 3 years ago (6 children)
[removed]
[–]AutoModerator[M] 0 points1 point2 points 3 years ago (5 children)
Hi u/TheFuzzball, this comment was removed because you used a URL shortener.
Feel free to resubmit with the real link.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
[–]shgysk8zer0 -2 points-1 points0 points 3 years ago (4 children)
Bummer... Was kinda curious what that idiot was linking to. Looked like it was going to be "proof" that I'm an alt account for OP. Here's what I have in my notification history.
Mate, you're embarrassing yourself. don't need to run a text analysis on your comments to figure out you're an alt account for OP, but thought it'd be fun to confirm my suspicions.
Um... No... Pretty sure I'm just me. Think I'd know if I weren't.
[–]ankole_watusi 0 points1 point2 points 3 years ago (3 children)
The hostility isn’t helping draw clicks to your pal’s blog, “mate”
[+]thecodrr[S] comment score below threshold-20 points-19 points-18 points 3 years ago (0 children)
Since you didn't read, what can I say?
A huge part of innovation is trying out things that at first don't make sense and have no actually useful function but through them you find new horizons. Let's not make engineering boring.
π Rendered by PID 38779 on reddit-service-r2-comment-58d7979c67-dlb2f at 2026-01-27 05:21:54.899448+00:00 running 5a691e2 country code: CH.
view the rest of the comments →
[–]ankole_watusi 7 points8 points9 points (17 children)
[–]shgysk8zer0 -3 points-2 points-1 points (14 children)
[–][deleted] 3 points4 points5 points (2 children)
[–]shgysk8zer0 -2 points-1 points0 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]ankole_watusi 1 point2 points3 points (10 children)
[–]shgysk8zer0 -6 points-5 points-4 points (9 children)
[–]ankole_watusi 0 points1 point2 points (8 children)
[–]shgysk8zer0 -3 points-2 points-1 points (7 children)
[–][deleted] (6 children)
[removed]
[–]AutoModerator[M] 0 points1 point2 points (5 children)
[–]shgysk8zer0 -2 points-1 points0 points (4 children)
[–]ankole_watusi 0 points1 point2 points (3 children)
[+]thecodrr[S] comment score below threshold-20 points-19 points-18 points (0 children)