[whatwg] HTML 5 : Misconceptions Documented

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.
Chris

Received on Tuesday, 12 August 2008 09:43:05 UTC