Hi Gustaf,
Thank you very much for all your explanation and sorry for the late answer. I'm still trying to understand all this W3C stuff and my last DOM studies where more related to the use of JavaScript, as everybody is using it and we have to put it too when the customer ask for.
Is seems to me that DOM is more like a model from wich you can access some document pieces, it doesn't matter the platform you use. The problem in ad_form is when you try to use somebody else JavaSript libraries, wich is what we do in Ajax Helper. The prototype framework has a lot of functions wich use the document.GetElementById method to access some content from the page, such as the Form.Serialize(). As our API doesn't generate the form id it's impossible to get the form with this method and the function doesn't work. There are some other functions that break on that too.
Yes, there's a very simple workaround using the -html switch in the form generation, but I don't think it's the best way. We allways try to be inside the W3C recomendation all the time, and in that specific case it seems to me that we are not. Almost all the forms in the Internet have the id set, wich also seems to me a W3C recomendation, so I think we should do it too.
I don't know if I'm putting this in the right place or in the right way, but I guess this is something we should think about. Something like an improvement to be made.