summaryrefslogtreecommitdiffstats
path: root/usr/local/www
diff options
context:
space:
mode:
authorN0YB <Al_Stu@Frontier.com>2014-01-27 10:45:18 -0800
committerN0YB <Al_Stu@Frontier.com>2014-01-27 10:45:18 -0800
commitdf5501dcd3a9dd7c38fda897cf6ce0c74ac65481 (patch)
treeb44537a739dcfde58ad6a99f543153b412caa18b /usr/local/www
parent30469c9b0c34c3353401363dd59d4b6d2551a7cd (diff)
downloadpfsense-df5501dcd3a9dd7c38fda897cf6ce0c74ac65481.zip
pfsense-df5501dcd3a9dd7c38fda897cf6ce0c74ac65481.tar.gz
Make select option XHTML compliant for "Number of lines to display".
http://validator.w3.org/check "SELECTED" is not a member of a group specified for any attribute <option value="7" SELECTED >7</option> The name and VI delimiter can be omitted from an attribute specification only if SHORTTAG YES is specified <option value="7" selected >7</option> "VI delimiter" is a technical term for the equal sign. This error message means that the name of an attribute and the equal sign cannot be omitted when specifying an attribute. A common cause for this error message is the use of "Attribute Minimization" in document types where it is not allowed, in XHTML for instance. How to fix: For attributes such as compact, checked or selected, do not write e.g <option selected ... but rather <option selected="selected" ...
Diffstat (limited to 'usr/local/www')
-rw-r--r--usr/local/www/widgets/widgets/log.widget.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/www/widgets/widgets/log.widget.php b/usr/local/www/widgets/widgets/log.widget.php
index 8a92092..40d943a 100644
--- a/usr/local/www/widgets/widgets/log.widget.php
+++ b/usr/local/www/widgets/widgets/log.widget.php
@@ -134,7 +134,7 @@ function format_log_line(row) {
Number of lines to display:
<select name="filterlogentries" class="formfld unknown" id="filterlogentries">
<?php for ($i = 1; $i <= 20; $i++) { ?>
- <option value="<?php echo $i;?>" <?php if ($nentries == $i) echo "SELECTED";?>><?php echo $i;?></option>
+ <option value="<?php echo $i;?>" <?php if ($nentries == $i) echo "selected=\"selected\"";?>><?php echo $i;?></option>
<?php } ?>
</select>
OpenPOWER on IntegriCloud