Opened 17 years ago

Closed 17 years ago

Last modified 17 years ago

#4512 closed (invalid)

<ul class="errorlist"> must be inside <p> on forms generated by as_p()

Reported by: gustavo@… Owned by: Adrian Holovaty
Component: Forms Version: dev
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

This way will be easy to keep the error next to the field, in complex form desings. Example: two columns, with fields side by side.

Change History (3)

comment:1 by Matt McClanahan <cardinal@…>, 17 years ago

I was going to say that doing this would result in invalid HTML (Paragraphs cannot contain other block-level elements), but apparently as_p() already puts the error list <ul> within a <p>. So instead, I'll say that it would result in even more invalid HTML.

comment:2 by Chris Beaven, 17 years ago

Resolution: invalid
Status: newclosed

Invalid, for the reasons Matt said. Just because it's already wrong doesn't mean we should introduce more wrongness. :)

comment:3 by Chris Beaven, 17 years ago

See #4527

Note: See TracTickets for help on using tickets.
Back to Top