On Dec 20, 3:37 am, "-Lost" <maventheextrawo...@techie.comwrote:
Response to Randy Webb <HikksNotAtH...@aol.com>:
What significant bugs does JScript have? OK, there are some
well- known bugs with elisions, toFixed, etc. but there's nothing
too major as far as I know.
Why can't I appendChild to a script block? <g>
Hence my DOM comment. And of course the quite dead horse of
attachEvent and it's molestation of "this."
And get/setAttribute of course.
Then there are the many missing features, like the previously
mentioned getComputedStyle. Manual conversion of cascaded styles is a
major pain (and sometimes impossible.)
>
Inconsistent pattern with attachEvent as well in that it requires the
user to state an event as if it was declared inline, e.g. the use of
"on."
Yes, that is ugly.
>
The necessity to detachEvent's to avoid a leaky Internet Explorer and
What a mess. I had been using a detachEvent queue for years, but
recently questioned whether it was needed. It isn't as if attachEvent
adds a property to the element object. It seemed reasonable to me
that only DOM0 implementations should have to worry about creating
circular references. The information in the MSDN article on leaks
contradicts this theory. Apparently attachEvent can create a circular
reference behind the scenes. Hopefully, if they do fix the garbage
collection, they will eliminate attachEvent in favor of a standard
addEventListener implementation. Otherwise, scripts will have to
continue to clean up after IE as there is no way to detect if
attachEvent leaks or not.
the fact there is no cap on the amount of event handlers that can be
registered on a single element/object. And of course then event
What cap would you suggest?
capturing as opposed to event bubbling.
That would open up a lot of possibilites, but they should only do it
with an addEventListener implementation. If they added it to
attachListener, there would be no safe way to use it.
>
</cheatsheet>
>But my question is what about JavaScript? Am I missing a blog
or technote somewhere? It appears that Internet Explorer 8
focuses on the designer and not the architect... I'm not sure I
understand.
For most web application architects, javascript is in the same
category as CSS - it makes life pretty for the user but does not
deliver core functionality. XmlHTTPRequest and similar
functionality has changed that view a bit, but not by much.
Depends on who you ask though. I have always said, and believed,
that the trend on the web is towards a JS dependency, not away
from it.
I believe the same. Although I cannot vouch for the usability or
effective deployment of most JavaScript content on the Web, but it is
definitely the trend.
A few months back during an introductory Web design course I took one
"expert" user actually argued the point that one should use
JavaScript for whatever because it is more widely supported than CSS.
I don't know what to make of that.