Re: JavaScript ECMAScript definitions
Thomas 'PointedEars' Lahn wrote:[color=blue]
> Richard Cornford wrote:[/color]
<snip>[color=blue]
> IBTD. It is not up to the implementator to decide what accesses
> by the programmer are likely and thus must be guarded and which
> are not. An implementation needs to work, in all situations that
> can be conceived, otherwise it is useless.[/color]
<snip>
Because this problem seems to inflict every web browser, to a greater or
lesser extent, you are effectively dismissing them all as useless. That
is fine, but unhelpful as we still have to script them. Though it seems
extreme as many people seem to get a lot of use out of their browsers.
In most of the cases I have seen of browsers that implement host objects
that are unfriendly when attempts are made to interact with them using
scripts, those objects are peripheral to normal browser scripting, often
undocumented and, if not, their use can be avoided. So knowing that
attempting to verify the - appendChild - method of an attribute Node on
some IE 6 versions will crash the browser is interesting, but
unimportant, as using that method in that context is unnecessary (as
attribute creation and manipulation is facilitated by other means).
On the whole I think it would be better if the browser implementers did
not expose objects that they do not expect to be scripted to javascript,
but they do so some responsibility should rest with the script authors
not to set about undocumented and unexpected interactions.
Yes this sort of thing is a problem when trying to create comprehensive
cross-browser object inspectors, but that task is somewhat specialised.
Richard.
Thomas 'PointedEars' Lahn wrote:[color=blue]
> Richard Cornford wrote:[/color]
<snip>[color=blue]
> IBTD. It is not up to the implementator to decide what accesses
> by the programmer are likely and thus must be guarded and which
> are not. An implementation needs to work, in all situations that
> can be conceived, otherwise it is useless.[/color]
<snip>
Because this problem seems to inflict every web browser, to a greater or
lesser extent, you are effectively dismissing them all as useless. That
is fine, but unhelpful as we still have to script them. Though it seems
extreme as many people seem to get a lot of use out of their browsers.
In most of the cases I have seen of browsers that implement host objects
that are unfriendly when attempts are made to interact with them using
scripts, those objects are peripheral to normal browser scripting, often
undocumented and, if not, their use can be avoided. So knowing that
attempting to verify the - appendChild - method of an attribute Node on
some IE 6 versions will crash the browser is interesting, but
unimportant, as using that method in that context is unnecessary (as
attribute creation and manipulation is facilitated by other means).
On the whole I think it would be better if the browser implementers did
not expose objects that they do not expect to be scripted to javascript,
but they do so some responsibility should rest with the script authors
not to set about undocumented and unexpected interactions.
Yes this sort of thing is a problem when trying to create comprehensive
cross-browser object inspectors, but that task is somewhat specialised.
Richard.
Comment