View Single Post
Old 12-10-2004, 06:36 PM   PM User | #12
datamech
New to the CF scene

 
Join Date: Jan 2004
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
datamech is an unknown quantity at this point
Quote:
Originally Posted by liorean
Datamech: Browsers are made to tolerate user error. That's the reason for the JavaScript to work.
If JavaScript merely want to tolerate user error, it would return the first matching item rather than a list. Returning multiple items when only single item is expected is certain to cause more errors.

Quote:
Originally Posted by liorean
As for the HTML specification, it does actually put a limit on the use of form control names, but that limit can not be represented in the DTD validation system and since the HTML validator is DTD based it has the same limits as the DTD syntax it validates towards. However, some limits above what the DTD can convey are placed on some HTML constructs, among them the name attribute of form controls, are both written as comments in the XHTML DTDs and are written in the HTML specification. Another such limit is that forms may not nest, but still if you put a form element inside a div element inside a form element it will validate using a DTD validator. Same goes for links inside links and some other such cases. The HTML validator catches a little more of these errors since the SGML DTD syntax is more verbose than the XML DTD syntax and can do element exclusion, but it can still not change the attribute definitions of an element depending on other attributes.
I don't know how exactly the W3C validator works, and the above is pure speculation. If you put a form inside a div and put the whole thing inside another form, the W3C validator does reject it. So there goes the theory.

The bottom line is, exactly where in the HTML specification does it say input names must be unique in forms? I cannot find that at all.
datamech is offline   Reply With Quote