On 01/30/2013 09:12 AM, Brad Jorsch wrote:
On Wed, Jan 30, 2013 at 11:39 AM, Subramanya Sastry ssastry@wikimedia.org wrote:
(1) we are attempting to move towards templates (DOM/Lua/wikitext) that can only return DOM fragments
You may want to run that idea past the communities first. I imagine they'll get upset if you break widely-used templates like just about anything in [[en:Category:Archival templates]] whose name ends with "top" or "bottom", considering that the obvious "fix" quickly runs into various parser limits (e.g. Template argument size).
Brad,
we still support unbalanced templates, but plan to enforce nesting of DOM blocks made up of combinations of these templates. Currently a table produced by unbalanced table start / row / end templates is encapsulated as a single template-affected DOM fragment. We plan to enforce the nesting of such a compound fragment, but not of individual templates that are part of it. This means that these unbalanced templates continue to work as expected, but can be re-expanded as a compound in a well-defined branch of the page DOM.
For the vast majority of templates that do not emit unbalanced output however we can directly enforce proper nesting per template without breaking current behavior.
Gabriel