Actions
Patch #44831
openReplace <p> with <div class="form-field"> in all .tabular forms
Patch #44831:
Replace <p> with <div class="form-field"> in all .tabular forms
Status:
New
Priority:
Normal
Assignee:
-
Category:
Code cleanup/refactoring
Target version:
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.
Actions