Open proseLA opened 1 year ago
The issue, IMO, in what you've proposed is that you'd wind up with a <div >
tag, noting the extra, invalid, space after div
if the parameters were empty.
just re-looking at this for the fun of it. what makes you think the space after <div >
is invalid html?
i looked at the validator here, and this code validated fine:
<!doctype html>
<html dir="ltr" lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Admin: Index</title>
<link rel="stylesheet" href="includes/css/bootstrap.min.css">
<link rel="stylesheet" href="includes/css/font-awesome.min.css">
</head>
<body >
<div >
<div >
<i class="fa fa-2x fa-info-circle"></i> WARNING: ALL emails will be sent to projects@mxworks.cc (as defined in "DEVELOPER_OVERRIDE_EMAIL_ADDRESS").
</div >
</div>
</body>
</html>
i'm not a fan of including the space here in the params key of the array:
these are the only 3 places where it is done.
i think it should be done in the writing out of the html similar to other elements.
in addition, these lines here: https://github.com/lat9/ZCA-Bootstrap-Template/blob/d61074344d1c2c6d4b7bb2ea3111f4a5a57a2ed4/includes/templates/bootstrap/common/tpl_columnar_display.php#L46-L50
might be improved to:
whether
$col['params']
needs to be cast to a string, i have not investigated, but i think it should be unnecessary as well.