Changes between Initial Version and Version 1 of Ticket #31189


Ignore:
Timestamp:
Jan 21, 2020, 2:44:35 AM (5 years ago)
Author:
Marc Nieper-Wißkirchen
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #31189 – Description

    initial v1  
    11The help text for the password field of, say, the UserCreationForm, is generated here: https://github.com/django/django/blob/master/django/contrib/auth/password_validation.py#L78 and is an html list. The form methods, `as_table' and `as_p', however, wrap the help text into a span tag. In the resulting rendered HTML, there will thus be a ul tag inside a span tag, which is invalid html.
    22
    3 To solve this problem, the span tag needs to be a div.
     3To solve this problem, the span tag needs at least to be a div. But then there is the problem that `as_p' renders everything inside a paragraph, which also cannot take an html list, only phrasing content.
Back to Top