diff options
author | NOYB <Al_Stu@Frontier.com> | 2015-12-18 21:49:41 -0800 |
---|---|---|
committer | Stephen Beaver <sbeaver@netgate.com> | 2016-01-05 07:57:44 -0500 |
commit | cf7a4f099a4685a51fddc3ce5bce44be8e4d4550 (patch) | |
tree | 97b0aabc57149bee652bbabd80b330ad79cf6e71 /src/usr/local/www/classes | |
parent | 946e00188dbb3f946ac81f29aa5be72a383a067c (diff) | |
download | pfsense-cf7a4f099a4685a51fddc3ce5bce44be8e4d4550.zip pfsense-cf7a4f099a4685a51fddc3ce5bce44be8e4d4550.tar.gz |
HTML Compliance - Form Button - HRef
The name attribute is obsolete. Consider putting an id attribute on the nearest container instead.
The <a> name attribute is not supported in HTML5. Use the id attribute instead.
Diffstat (limited to 'src/usr/local/www/classes')
-rw-r--r-- | src/usr/local/www/classes/Form/Button.class.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/usr/local/www/classes/Form/Button.class.php b/src/usr/local/www/classes/Form/Button.class.php index 0b2a9de..a6f2ef3 100644 --- a/src/usr/local/www/classes/Form/Button.class.php +++ b/src/usr/local/www/classes/Form/Button.class.php @@ -64,6 +64,9 @@ class Form_Button extends Form_Input } parent::__construct($name, $title, null); + + if (isset($link)) + unset($this->_attributes['name']); } protected function _getInput() |