[whatwg] HTML 5 : Misconceptions Documented
giecrilj at stegny.2a.pl
Tue Aug 12 09:43:05 PDT 2008
While 'form.elements' is not obsolete, 'form.elements.something' (to mean
'form.elements.namedItem("something")') is. Actually, it is some news to me
that such syntax is supported; I was only aware of the syntax
'form.something' (obsolete, but convenient) and
'form.elements("something")'. That 'form.length' mirrors
'form.elements.length', while still supported, is just ridiculous; I missed
that as well. Everything you say is true, except that the merrie olde
syntaxe is not that ambiguous as you present it. Indeed, I cannot see any
ambiguity at all.
I am not using MSDN as the source of information what the Web should look
like; I am using it to understand existing code that the standard does not
cover, e.g. 'form.control' or 'new Image()' (incidentally, this is
'Image.Create()' in Visual Basic Scripting Edition).
Thanks for pointing that out.
More information about the whatwg