#27055: Model form with geometry widgets has invalid html
-------------------------------------+-------------------------------------
Reporter: Antonis | Owner: Antonis
Christofides | Christofides
Type: Bug | Status: assigned
Component: GIS | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Antonis Christofides):
OK, it's more complicated than I thought at first:
1. The <style> element will be invalid whether the widget is enclosed in a
<p>, in a <td>, or in a <div>. If there is no way to move the <style>
elsewhere, it may be possible to move stuff to the HTML "style" attribute
and into the Javascript.
2. If, as in the example above, the widget is enclosed in a <p>, then the
<div> is also invalid; the starting "<div>" tag will imply a closing
"</p>" tag, meaning that the "</p>" tag that follows the closing "</div>"
is invalid. If it is expected that widgets contain divs, then this is an
error of the code that decides to enclose widgets within <p>s.
--
Ticket URL: <https://code.djangoproject.com/ticket/27055#comment:4>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/064.b994d40e014bdf67e88a2f2d6ce7d9e4%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.