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.
Last edited by liorean; 12-09-2004 at 09:23 PM..