As a side note, it appears that the property (frameElement) that is
sending these guys around in circles responds favorably to the typeof
operator. One "working" solution (meaning it doesn't throw an
exception) is:
typeof window.frameElement == 'undefined'
AFAIK, that's how it sits today; never mind that it will never be true
in IE.
On the other hand, this condition blows up:
!window.frameElement
A host property in IE that throws exceptions on type conversion. Now
where have I seen that before? Oh yeah, getAttribute.
http://ejohn.org/blog/future-proofing-javascript-libraries/#postcomment
Apparently he still can't debug scripts in IE (or use the alert
method.) And since when is it a solution to replace something that
works sporadically with something that can never work?
Note to the Ninja: recreate one of your "edge cases" and do this:
window.alert(typeof window.frameElement);
I'll go way out on a limb and suggest the result will be "unknown."
Sad commentary that handling the load event in jQuery means dealing
with IE's behind-the-scenes ActiveX machinations. Even sadder that
the jQuery developers are so ill-equipped to handle them.
This is why jQuery will never be more than a bad joke. Resig knows
virtually nothing about IE and refuses to learn (preferring to post
blog entries full of fantastic assumptions.) The punchline is that so
much of the browser-challenged population insists on defending his
bullshit while at the same time wasting time asking for help in his
forums. How many times can they write "I just love jQuery, but..."
without noticing that their sentiments are misplaced.
In the comments, several of library luminaries of the day discuss
feature detection. This is the Ninja talking to the MacGyver:
"I can't imagine most libraries being able to withstand a DOM-
compliant IE 8 (assuming that it has its own set of bugs and
misgivings - and that libraries weren't able to adapt)."
Prophetic in so many ways. Of course, none are at all kind to
*him*.
I can't imagine somebody this ignorant and lazy becoming anything more
than a laughingstock. I guess if you pump enough Spam through Twitter
and have your face on a favicon, anything can happen.
History will sort it out. For now, ignore the buffoons with the funny
nicknames. Nothing they say or do will impact the future of Web
development in any meaningful way. Look what they are using to
communicate with each other. As with Ajaxian, the comments are
illegible. These guys need to start thinking about "today’s
problems" before addressing the future.