Commit 7ecb1b7c authored by Steven Wittens's avatar Steven Wittens
Browse files

- #23387: form() should respect block-level elements

parent 34421b5d
......@@ -1035,6 +1035,7 @@ function form($form, $method = 'post', $action = NULL, $attributes = NULL) {
if (!$action) {
$action = request_uri();
}
// Anonymous div to satisfy XHTML compliancy.
return '<form action="'. check_url($action) .'" method="'. $method .'"'. drupal_attributes($attributes) .">\n<div>". $form ."\n</div></form>\n";
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment