kangax said:
It matters which inference you can apply. Of course, you don't have to
rely on any of these in the first place.
Nonsense.
Taking its non-standard nature out of the picture, what makes this
inference a "fatal mistake"?
Wrong question. The non-standard nature is the core of the problem of this
inference.
Sorry, I'm not following.
undefined (unsupported) === undefined (not assigned). Same for `null' and
other false-values, but those are less likely for accesses to unsupported
(read: not implemented) properties.
Do you know of any environments returning non-string value for host
objects' `typeof`? I understand that this is theoretically possible, but
so is it possible for `typeof` to throw error on host objects; Yet, we
don't wrap each of those in a try/catch.
You miss the point.
The one I found was this:
That is not the current one. Maybe I have not posted it yet. FWIW, the
newer versions of these methods do not employ the `typeof' test on
event-handler properties anymore.
[...]
Am I missing something or does this method do nothing in MSHTML DOM,
when given an element with no corresponding event-handler property?
That is what it did, based on the test that was exposed as faulty later.
From what I can see, there's also a circular reference here, although
it's being broken before method returns.
So?
PointedEars