Details
Description
If a component renders incorrect markup (say, omits a closing tag) this can be very difficult to debug because the page corruption is not immediately obvious. A debug feature in DOMResponseWriter would be useful for detecting and analyzing this.
Check has been added upon endElement(...) method invocation. The check compares the end element with the current cursor value. If these mismatch a WARNING is logged, but only in Development project stage. The WARNING message is as follows:
Missing end-element for: [element-name] (path: [path-to-element])
Please note that one missing end-element in a UIComponent can result in multiple WARNING messages as subsequent invocations of end-element can possibly mismatch as well. The developer should rather focus on the 1st logged WARNING message.
Marking this one as FIXED.