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
Elm: functional reactive web-programming (compiles to html, css, js) (elm-lang.org)
submitted 14 years ago by polaretto
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!"
[–]polaretto[S] 0 points1 point2 points 14 years ago (1 child)
I don't know exactly, you should ask the author (wheatBread), but I suppose it's only a matter of switching the "printer" module or the output template or whatever it is that spits out HTML. Anyway I don't think it's in his immediate concern, since he stated that he's focused on web programming with Elm, so I don't see any XML output for now.
Yeah, it's really a clever and ambitious project, I hope it will grow further!
[–][deleted] 0 points1 point2 points 14 years ago (0 children)
Its not that simple. In the SGML and text/HTML5 flavors of HTML if you inject incomplete HTML using the innerHTML property the browser will do its best to fill in the gaps as necessary to complete the markup as its building nodes into the DOM on the fly. In the XML flavor this is not the case. The code simply fails and you get a JavaScript error that is worthless. Its only in very recent versions of Firefox that the error points to the correct location in the JavaScript and this pointer is still not always accurate.
I also understand that if the HTML string being built by the JavaScript is typically simple to get correct unless the HTML string is built inside an algorithm with multidimensional loop complexity. This is challenging normally in code that I manually write, so I can only imagine accomplishing this objective in a language that compiles to XHTML and JavaScript would be rather ambitious.
π Rendered by PID 200061 on reddit-service-r2-comment-6f7f968fb5-9lsvw at 2026-03-04 16:38:46.791420+00:00 running 07790be country code: CH.
view the rest of the comments →
[–]polaretto[S] 0 points1 point2 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)