cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vadim Gritsenko <>
Subject Re: Question about addition of "-input" to id of CForms widgets
Date Thu, 13 Oct 2005 14:31:14 GMT
Ugo Cei wrote:
> Il giorno 12/ott/05, alle ore 11:35, Bruno Dumon ha scritto:
>> I've noticed that in 2.1-head all widgets have in their HTML rendering
>> the text "-input" added to their widget id (and are contained in a  span
>> which has the original widget id).
>> I assume this is to support the new ajax stuff, but is there a reason
>> why this couldn't have been done the other way around? e.g. add
>> "-container" to the surrounding elements' id.
>> The problem is that (at least for me) this requires updating some
>> javascript here and there which makes use of the IDs, and more  annoying,
>> that it makes it hard to support both 2.1.7 and 2.1.8 at the same time
>> for the same application.
> I agree. I discovered this by chance when some scripts I had that  used 
> document.getElementById() stopped working after an update.

Same here. I think we should treat those XSLT files more like our public API 
with forms users and keep an eye on backward compatibility.


View raw message