FormTag renders empty <div> tag [SPR-16498] #21041
Labels
in: web
Issues in web modules (web, webmvc, webflux, websocket)
status: backported
An issue that has been backported to maintenance branches
type: bug
A general bug
Milestone
Delete this account opened SPR-16498 and commented
The doEndTag method in org/springframework/web/servlet/tags/form/FormTag.java uses writeHiddenFields to write the ExtraHiddenFields to a <div> tag. The if statement inside writeHiddenFields checks for hiddenFields being null, but in the case of it being an empty Map will write an empty <div></div> at the end of the <form>.
Possible solutions:
Affects: 4.3.14
Referenced from: commits 350f318, 6d75732
Backported to: 4.3.15
The text was updated successfully, but these errors were encountered: