adambones said:
Yeah there is an extension to the document that binds a JS class wrapper
There is no such thing as the programming languages in question do not
support classes.
There is no such thing as a `HTML class' either. While `class' is a HTML 4+
attribute, its value refers to CSS classes.
I personally don't understand the problem with this - how is it different
to defining a 'top-level' function which will be assigned to the window?
A top-level function is a method of the Global Object, and it would not be
assigned to it but the Global Object would be automagically augmented with
it upon variable instantiation of the global execution context. The Global
Object MAY have a `window' property that refers to the Global Object itself,
there is no requirement for it at all.
`document' refers to a host object which does not need to allow for
augmentation, as specified. `window' may refer to such an object as well.
We have discussed this ad nauseam here before, hence the good recommendation
to read the FAQ.
HTH
PointedEars