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. By this
logic, C++ is actually 2 separate languages (C and C++) but no one ever makes
this distinction. 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? Up until 2009, JavaScript was not
valid outside of HTML.
Jon.
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN