[Xsltforms-support] Detecting and debug-logging of not-found elements by id
Brought to you by:
alain-couthures
From: Kostis A. <ank...@gm...> - 2010-05-20 09:41:06
|
Hi Alain, in rev397-398 you replaced the invocation of the $() function with directly invoking the getElementById() function. Why was this change necessary? I ask about it because i had discovered a new usage for the $() function, by customizing it to report any not-found elements, with the following code: function $(id) { // return document.getElementById(id); var el = document.getElementById(id); if (!el && DebugMode){DebugConsole.write("Failed to find ID("+id+")!");} return el; } This change had prooved to be very usefull when debuging xforms, since XSLTForms does not explicitely detect and report all such errors, and the subsequent re null-pointer errors do not report the id in question. Is there any plan to reinstitute such a check? Regards for your efforts, Kostis Anagnostopoulos |