The indentation was created by Firefox's source. Both Firefox and HTML validators said that the </p>
is misplaced. But I can't figure out why.
<p>
<ul class="errorlist">
<li>This field is required.</li>
</ul>
<label for="id_creator">Creator:</label>
<select onchange="Dajaxice.doors.orders_create_creator_changed(fill_other_fields, {'creator_pk': this.options[this.selectedIndex].value})" name="creator" id="id_creator">
<option value="" selected="selected">Select a user</option>
<option value="9">Amy the Tenant</option>
<option value="6">Alex the Tenant</option>
<option value="3">Bob the Property Manager</option>
</select>
</p>
On a side note, when Django doesn't render the error messages, then the closing </p
> tag is valid. Here is the code:
<p>
<label for="id_creator">Creator:</label>
<select onchange="Dajaxice.doors.orders_create_creator_changed(fill_other_fields, {'creator_pk': this.options[this.selectedIndex].value})" name="creator" id="id_creator">
<option value="" selected="selected">Select a user</option>
<option value="9">Amy the Tenant</option>
<option value="6">Alex the Tenant</option>
<option value="3">Bob the Property Manager</option>
</select>
</p>