diff options
| author | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2007-09-09 17:45:24 +0000 |
|---|---|---|
| committer | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2007-09-09 17:45:24 +0000 |
| commit | ee82629d89b54694b9087dbbcb9c91e764e2561d (patch) | |
| tree | 9df351bb66e3b4d3ba40b8bb36e0b81d50001bc7 /roundcubemail/program/include/rcube_html.inc | |
| parent | 1256848fe21e1cddfde58cd8d0c8f4069960f7f0 (diff) | |
Ensure XHTML validation
git-svn-id: https://svn.roundcube.net/trunk@786 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/include/rcube_html.inc')
| -rw-r--r-- | roundcubemail/program/include/rcube_html.inc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/roundcubemail/program/include/rcube_html.inc b/roundcubemail/program/include/rcube_html.inc index 5ebfa3256..a31594a56 100644 --- a/roundcubemail/program/include/rcube_html.inc +++ b/roundcubemail/program/include/rcube_html.inc @@ -297,14 +297,14 @@ class rcube_form_element $value = Q($value, 'strict', FALSE); // attributes with no value - if (in_array($key, array('checked', 'multiple', 'disabled', 'selected'))) + if (in_array($key, array('checked', 'multiple', 'disabled', 'selected', 'nowrap'))) { if ($value) - $attrib_arr[] = $key; + $attrib_arr[] = sprintf('%s="%s"', $this->_conv_case($key, 'attrib'), $key); } // don't convert size of value attribute else if ($key=='value') - $attrib_arr[] = sprintf('%s="%s"', $this->_conv_case($key, 'attrib'), $value, 'value'); + $attrib_arr[] = sprintf('%s="%s"', $this->_conv_case($key, 'attrib'), $value); // regular tag attributes else @@ -647,7 +647,7 @@ class select extends rcube_form_element $selected = ((isset($option['value']) && in_array($option['value'], $select, TRUE)) || (in_array($option['text'], $select, TRUE))) ? - $this->_conv_case(' selected', 'attrib') : ''; + $this->_conv_case(' selected="selected"', 'attrib') : ''; $options_str .= sprintf("<%s%s%s>%s</%s>\n", $this->_conv_case('option', 'tag'), |
