View Single Post
Old 12-09-2004, 09:02 PM   PM User | #11
liorean
The thread killer


 
Join Date: Feb 2003
Location: Umeå, Sweden
Posts: 5,575
Thanks: 0
Thanked 84 Times in 75 Posts
liorean will become famous soon enoughliorean will become famous soon enough
Datamech: Browsers are made to tolerate user error. That's the reason for the JavaScript to work.

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.
__________________
liorean <[lio@wg]>
Articles: RegEx evolt wsabstract , Named Arguments
Useful Threads: JavaScript Docs & Refs, FAQ - HTML & CSS Docs, FAQ - XML Doc & Refs
Moz: JavaScript DOM Interfaces MSDN: JScript DHTML KDE: KJS KHTML Opera: Standards

Last edited by liorean; 12-09-2004 at 09:23 PM..
liorean is offline   Reply With Quote