CARVIEW |
jdalton
(John-David Dalton)
- You’re not logged in!
- Login
- Pricing & Signup
- Name
- John-David Dalton
- Website/Blog
- https://www.allyoucanleet.com
- Member Since
- Apr 02, 2008 (about 1 year)
Following 28 coders and watching 65 repositories view all →
Public Repositories (6)
-
fusebox
A standalone version of FuseJS's fuse.Fusebox()
Last updated Sat Feb 13 01:36:06 -0800 2010
-
fusejs
Alpha version of FuseJS - Fuse to win !
Last updated Sat Feb 13 01:33:33 -0800 2010
-
jquery.emoticon.js
Emoticon replacement framework for jQuery
Forked from Marak/jquery.emoticon.js Mon Jan 25 13:02:03 -0800 2010
Last updated Tue Jan 26 06:22:22 -0800 2010
-
nwmatcher
Fast Javascript CSS Selector Engine and Matcher (modified with different takes on performance and...
Forked from dperini/nwmatcher Sun Nov 01 12:49:10 -0800 2009
Last updated Mon Jan 11 23:37:53 -0800 2010
-
SlickSpec
Standalone Selector API Specs
Forked from subtleGradient/SlickSpec Wed Dec 16 07:58:56 -0800 2009
Last updated Sat Dec 19 01:54:36 -0800 2009
-
slickspeed
Speed / Validity test for css dom queries in JavaScript web Frameworks.
Forked from kamicane/slickspeed Thu Feb 11 22:32:13 -0800 2010
Last updated Fri Feb 20 19:50:15 -0800 2009
Public Activity 
did it return an empty array ?
*shows a precedent for throwing errors when the dom is expected to be fully parsed
We have had this discussion before.
HTC documentation shows a president for throwing errors when the dom is expected to be fully parsed
The innerHTML property of the custom element is available once the oncontentready event has fired. Therefore, an event handler should be attached to this event in a Literal Content component that retrieves the innerHTML property of the custom element. Otherwise, an error occurs, which indicates that the innerHTML property is not yet available.
C++ doc.aspx&usg=AFQjCNFTmplJTJmc6zc7Eevg3mieshYrIg) shows similar API throws an error
Returns S_OK if successful, or an error value otherwise.
Or the fact that it has worked for
11 years
I do agree that event delegation is one way around this and jQuery has helper methods for that as well.
Complimentary documentation suggests that methods/properties that require the dom to be fully parsed,
doscroll
is one of them, will throw an error. It has behaved this way since it was supported in IE5 or so. The long history and bits of documentation make it a pretty safe bet. We can play "what if" until the cows come home. With IE9 still supporting VBScript and other oldies I don't see this as an issue. Also thedoscroll
technique is always accompanied with various other fallbacks.
doscroll
will not throw errors when its being called from a secondary document (as stated in the tech article linked to on Diego's page). For example if called within an iframedoscroll
will not throw errors. That's whyIEContentLoaded
has a fallback to at least fire before the onload event fires (even if its immediately before). Thedocument.body
check is better than nothing but will produce a false positive if you use loading techniques that flush the output buffer early.
John,
You will
allow this
, oh my.It seems Garrett at least tried to help and provided a line number to boot. He is absolutely correct about function declarations in blocks, for additional reading check out kangax's excellent post on named-function-expressions. There is nothing stopping the next version of a
supported
browser from throwing an error (who knows?). Why take the chance.In fact, ECMA 5th edition states on page 86 section 12:
NOTE: Several widely used implementations of ECMAScript are known to support the use of FunctionDeclaration as a Statement. However there are significant and irreconcilable variations among the implementations in the semantics applied to such FunctionDeclarations. Because of these irreconcilable difference, the use of a FunctionDeclaration as a Statement results in code that is not reliably portable among implementations. It is recommended that ECMAScript implementations either disallow this usage of FunctionDeclaration or issue a warning when such a usage is encountered. Future editions of ECMAScript may define alternative portable means for declaring functions in a Statement context.
I don't think its cool to lash out at a dev for trying to help just because he drops the
comp.lang.javascript
tag (my interpretation). Garrett is a great dev, I have learned plenty from him. Who knows you might too.

-
jdalton committed 686debd8:
fusejs: Add logo and IRC info to README.markdown. [jddalton]
-
jdalton committed 293c9753:
fusejs: Simplify extending fuse.dom.NodeList and fuse.dom.RawList and conform more to the jQuery syntax for list getters/setters. [jddalton]
-
jdalton committed fabb08f3:
fusejs: Correct argument order of fuse.dom.extendByTag() to momic the fuse.Class API changes. [jddalton]