summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/classes
diff options
context:
space:
mode:
authorNOYB <Al_Stu@Frontier.com>2015-12-13 01:54:37 -0800
committerNOYB <Al_Stu@Frontier.com>2015-12-13 01:54:37 -0800
commita4b5b782e33a53b0dc14ad1ac9eee51160e912eb (patch)
tree6c45886b0b0a010c552d740e75835ddfe1ccef1f /src/usr/local/www/classes
parentb21e40099d85fa0a83e4d8fc87721e0a7559cdab (diff)
downloadpfsense-a4b5b782e33a53b0dc14ad1ac9eee51160e912eb.zip
pfsense-a4b5b782e33a53b0dc14ad1ac9eee51160e912eb.tar.gz
HTML Compliance - Collapsible Form Section HREF
Bad value for attribute href on element a: Illegal character in fragment: not a URL code point. <a data-toggle="collapse" href="#<id> .panel-body"> Syntax of URL:Any URL. For example: /hello, #canvas, or http://example.org/. Characters should be represented in NFC and spaces should be escaped as %20. Fix is to set an id on the target.
Diffstat (limited to 'src/usr/local/www/classes')
-rw-r--r--src/usr/local/www/classes/Form/Section.class.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/usr/local/www/classes/Form/Section.class.php b/src/usr/local/www/classes/Form/Section.class.php
index ac1587d..eff386a 100644
--- a/src/usr/local/www/classes/Form/Section.class.php
+++ b/src/usr/local/www/classes/Form/Section.class.php
@@ -81,11 +81,11 @@ class Form_Section extends Form_Element
if ($this->_collapsible & COLLAPSIBLE) {
$hdricon = '<span class="widget-heading-icon">' .
- '<a data-toggle="collapse" href="#' . $this->_attributes['id'] . ' .panel-body">' .
+ '<a data-toggle="collapse" href="#' . $this->_attributes['id'] . '_panel-body">' .
'<i class="fa fa-plus-circle"></i>' .
'</a>' .
'</span>';
- $bodyclass = '<div class="panel-body collapse ';
+ $bodyclass = '<div id="' . $this->_attributes['id'] . '_panel-body" class="panel-body collapse ';
if (($this->_collapsible & SEC_CLOSED)) {
$bodyclass .= 'out">';
} else {
OpenPOWER on IntegriCloud