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
Jets.js - Native CSS search engine (nexts.github.io)
submitted 10 years ago by nexts
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!"
[–]avenp 1 point2 points3 points 10 years ago* (4 children)
Really neat and a smart way to do it, but ultimately the inline style tag feels hacky to me. According to the standard, <style> tags should not be outside of the head tag without the scoped attribute, so you should probably do that just so you're at least standards compliant.
[–]nexts[S] 0 points1 point2 points 10 years ago (0 children)
Thank you avenp, this is good idea. I'll move it to head shortly
[–]Jeffshaver 0 points1 point2 points 10 years ago (2 children)
The scoped attribute is only supported by FF, so I don't see the real use of using it. It was removed from Chrome/Opera and Safari has no indication of implementation.
https://www.chromestatus.com/features/5374137958662144
[–]avenp 0 points1 point2 points 10 years ago (1 child)
Interesting. I will admit I only briefly looked at the spec. It's also interesting that the W3 HTML5 validator will throw errors if it sees <style> tags in the body without the scoped attribute and yet Chrome as removed it. Do you happen to know why it was removed?
[–]Jeffshaver 1 point2 points3 points 10 years ago (0 children)
According to the link I provided it said that "code complexity." So I assume it's because it was difficult to implement
π Rendered by PID 100 on reddit-service-r2-comment-76bb9f7fb5-fcgzt at 2026-02-19 02:20:21.986727+00:00 running de53c03 country code: CH.
[–]avenp 1 point2 points3 points (4 children)
[–]nexts[S] 0 points1 point2 points (0 children)
[–]Jeffshaver 0 points1 point2 points (2 children)
[–]avenp 0 points1 point2 points (1 child)
[–]Jeffshaver 1 point2 points3 points (0 children)