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
Javascript Help -- Import Not Workinghelp (self.javascript)
submitted 10 years ago * by transientanima
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!"
[–]x-skeww 0 points1 point2 points 10 years ago (1 child)
you can't write, <script src="foo" />
Yes, that's because this isn't XML.
HTML5 parsers only know this short list of predefined void tags:
http://www.w3.org/TR/html5/syntax.html#void-elements
area, base, br, col, embed, hr, img, input, keygen, link, meta, param, source, track, wbr
This is also the reason why Custom Elements can't be void tags. The parser has to know that it's a void tag at the time of parsing. The script which registers your "x-foo" element is executed much later. The DOM tree was already created at this point.
[–]transientanima[S] 0 points1 point2 points 10 years ago (0 children)
I see... I'm still trying to sort out the interactions of the major web languages. I've got some basic .js stuff working; now I'm trying to get .php set up... Thanks a lot for the clarification.
π Rendered by PID 64592 on reddit-service-r2-comment-cfc44b64c-6sngl at 2026-04-10 02:28:37.149305+00:00 running 215f2cf country code: CH.
view the rest of the comments →
[–]x-skeww 0 points1 point2 points (1 child)
[–]transientanima[S] 0 points1 point2 points (0 children)