Author: ahel
Description:
Add <form and </form to $openmatch and $closematch, respectively, in Parser.php
Currently, users of SimpleForms cannot produce pages that validate. The reason is that the form tag is forced by the parser into paragraph mode. The <form> tag isn't allowed inside paragraphs. Moreover, the paragraph tag also ends up being closed incorrectly. Here's a slightly doctored example:
{{#form:
{{#input: type = hidden | name = title | value = Completed form}}
{{#input: type = hidden | name = formmailer | value = formmailer}}
{{{!}}
! align=right {{!}} Test:
{{!}} {{#input: type = text | name = test }}
{{!}}}
}}
With the 1.11.0 MediaWiki, I get this:
<p>
<form action="/blah" id="sf-47a8f52225ef1"><input type="hidden" name="title" value="Completed form"/>
<input type="hidden" name="formmailer" value="formmailer"/>
</p>