W3C home > Mailing lists > Public > whatwg@whatwg.org > August 2008

[whatwg] HTML 5 : Misconceptions Documented

From: Kristof Zelechovski <giecrilj@stegny.2a.pl>
Date: Tue, 12 Aug 2008 18:43:05 +0200
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.
Received on Tuesday, 12 August 2008 09:43:05 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:04 UTC