Re:HTML Attributes vs. DOM Properties
by jacobsimon on Thursday April 25, 2024 @10:20AM
(#40157938)
That's definitely one of the main original use cases, but it would have been a bad decision to base the entire language around the limitations of HTML, and I doubt JavaScript today would be the most popular programming language today if they had. You can read the original ECMAScript 1 standard here, which is titled: "A general purpose, cross-platform programming language"[1].
https://ecma-international.org/wp-content/uploads/ECMA-262_1...
Re:HTML Attributes vs. DOM Properties
by AmpsterMan on Thursday April 25, 2024 @12:54PM
(#40159955)
I think a lot of people dislike that JavaScript is a general purpose programming language, rather than being a scripting engine for browsers.
A lot of people dislike any tool that actually has wide spread usage. No one complains about tools that have been abandoned.
Re:HTML Attributes vs. DOM Properties
by triceratops on Thursday April 25, 2024 @02:26PM
(#40161215)
"There are only two kinds of languages: the ones people complain about and the ones nobody uses." - Bjarne Stroustrop
Since JavaScript was invented specifically to manipulate the DOM, I'm not sure that that follows.