Project

General

Profile

Actions

Patch #44831

open

Replace <p> with <div class="form-field"> in all .tabular forms

Patch #44831: Replace <p> with <div class="form-field"> in all .tabular forms

Added by Marius BĂLTEANU about 15 hours ago. Updated about 15 hours ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Code cleanup/refactoring

Description

Currently, most .tabular forms wrap individual form fields in <p> elements, while only a few fields (such as wiki textareas and full-width custom fields) were previously migrated to <div class="form-field">.

In HTML, <p> cannot contain block-level elements such as <div>. Whenever a field inside .tabular renders a <div> (for example, a wiki toolbar / textarea wrapper, custom field controls, or plugin-injected elements), the browser implicitly closes the <p> tag, resulting in broken DOM structure and layout/styling issues.

My proposal is to replace all remaining <p> elements inside .tabular forms with <div class="form-field"> for consistency and valid HTML markup.

Updated by Marius BĂLTEANU about 15 hours ago Actions #1

  • Description updated (diff)
Actions

Also available in: PDF Atom