On 2019-09-27 2:05 AM, Jon Perryman wrote:
  On Wednesday, September 25, 2019, 02:44:14 AM PDT, David Crayford wrote:
Are you talking about the DOM?  The definition of OO typically refers to
languages that support polymorphism, inheritance and encapsulation. HTML
is basically a markup language.
I'm talking about the DOM object instead of DOM (Document Object Model). The 
"on" event methods meet encapsulation (methods/functions associated to the 
object) and polymorphism (different object types support the same interfaces). Since HTML 
is a set of internally predefined classes (e.g. body,  input and many more). If HTML ever 
externalizes classes, then inheritance would become a factor.

This assumes Javascript and CSS are not part of the HTML language.

They're not. They have completely different language standards and can be used independently of HTML. CSS is used in JavaFX and Android to style desktop and phone GUIs using a different form of XML.

By this logic, C++ is actually 2 separate languages (C and C++) but no one ever 
makes this distinction.

I make the distinction. They are most certainly two separate languages and evolving in very different directions. I've programmed professionally in both for 20+ years so I'm fully cognizant of the differences. Modern C++ makes heavy use of generics (templates) and over the last decade is moving towards the functional programming paradigm with features such as lambda's and algebraic data types.


Do you consider HTML's '<input onclick="some javascript">' fundamentally 
different to C++'s 'input::onclick { some C }'? In C++, does C deviate from the C language? 
What is it that makes you think C++ is a single language but HTML/javascript/CSS are separate 
unrelated languages other than they don't follow traditional concepts?

I don't consider them equivalent.


Up until  2009, JavaScript was not valid outside of HTML.

Mozilla released Rhino way back in 1998.


Jon.

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to