Re: FAQ Topic - What online resources are available? (2009-01-29)
- From: Jorge <jorge@xxxxxxxxxxxxxxxxx>
- Date: Fri, 30 Jan 2009 14:29:44 -0800 (PST)
On Jan 30, 3:44 am, Garrett Smith <dhtmlkitc...@xxxxxxxxx> wrote:
I've seen far to often, "it doesn't matter if its valid" coupled with
"it doesn't work in this browser."
Yes you're right, I agree. But a missing type="text/javascript" (or
whatever it should be) in a script, won't render your .html any less
valid. You can still validate at the w3.org validator until the only
remaining warning is the missing type in the script tag. And what
Crockford says is that that won't actually be a problem in any
browser.
(...)
| These collections are still available in the browsers (um). They're
| not in any standard, but ah they're obsolete now. They're uh, as we'll
| see, more modern alternatives to all of these things. So these are
| pretty much irrelevant now. I recommend you not use them.
DOM 1 defined these, so they're in a standard. I don't understand why he
recommends not to use these.
Because they've been inherited from ancient times (from DOM0, from
before even the w3c) ?
Is that what you think Doug's reason is or is that your reason?
It's usually better to apply the search to the container, which is not
neccesarily the whole <body>. So container.getElementsByTagName('img')
is usually much more convenient than document.images.
Clearly, these are standard; though Doug says that they're not. That is
just plain wrong.
Yes it is. Plain wrong. But you're overlooking the other 99.9% of
content. There's certainly 99.9% of valid excellent content in those
videos, vs. a 0.1% that's arguable, or a matter of tastes.
That's not correct. Instead, getElementsByName(name) returns a
*NodeList* of *Elements* whose name matches the name argument. Except in
IE < 8 which confuses ID and NAME (a common bug that most regulars are
well aware of).
Very much array-like, in short. It's not an everything-and-all-about-
the-DOM video.
The term 'array' was used to mean something that is not a javascript
Array. I think this can be misleading.
For a beginner (and this is a learning tool), a "nodelist" is much
more misleading that an "array". A beginner will have plenty of time
to learn that collections are array-like rather than actual arrays.
(...)
It's all good until the last sentence; the whitespace is necessary and
not having it causes bugs in IE.
So M$ ought to fix IE once and for all.
Would be nice.
Certainly :-)
All the time I have for now.
I can't recommend that.
All of them are excellent learning tools. See them all.
I have watched most of the others before and did not find much useful
information. I think remember there was one video with a
weird/inefficient regex for String.prototype.trim, one with the power
constructor.
That falls into the arguable mere 0.1%.
The one I reviewed just now was new to me; I just pushed play and typed
my reactions; no planning or tough scrutinizing. I don't think I was
overly critical or negative.
Garret, come on, don't be so hard-headed and include them in the
"online resources" faq-listing. They're ~100% excellent.
--
Jorge.
.
- References:
- FAQ Topic - What online resources are available? (2009-01-29)
- From: FAQ server
- Re: FAQ Topic - What online resources are available? (2009-01-29)
- From: Jorge
- Re: FAQ Topic - What online resources are available? (2009-01-29)
- From: Garrett Smith
- Re: FAQ Topic - What online resources are available? (2009-01-29)
- From: Jorge
- Re: FAQ Topic - What online resources are available? (2009-01-29)
- From: Garrett Smith
- FAQ Topic - What online resources are available? (2009-01-29)
- Prev by Date: Re: Javascript popup code, fully cross-compatible, standard-compliant
- Next by Date: Re: Javascript popup code, fully cross-compatible, standard-compliant
- Previous by thread: Re: FAQ Topic - What online resources are available? (2009-01-29)
- Next by thread: Re: FAQ Topic - What online resources are available? (2009-01-29)
- Index(es):
Relevant Pages
|
Loading