[TASK] Change input type of search-fields from text to search 03/32903/6
authorIngo Pfennigstorf <i.pfennigstorf@gmail.com>
Sun, 21 Sep 2014 18:18:16 +0000 (20:18 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Wed, 24 Sep 2014 18:58:46 +0000 (20:58 +0200)
This changes the html input type for the search-fields from
"text" to the semantically correct "search".

Releases: master
Resolves: #61777
Change-Id: Id8a5fc9155a89898e5aede0a2e2e82f99b967529
Reviewed-on: http://review.typo3.org/32903
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
Reviewed-by: Ingo Pfennigstorf <i.pfennigstorf@gmail.com>
Tested-by: Ingo Pfennigstorf <i.pfennigstorf@gmail.com>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
typo3/sysext/backend/Classes/Form/Element/SuggestElement.php
typo3/sysext/core/Classes/Database/QueryView.php
typo3/sysext/indexed_search/pi/indexed_search.tmpl
typo3/sysext/indexed_search/pi/template_css.tmpl
typo3/sysext/lowlevel/Resources/Private/Templates/Backend/Configuration.html
typo3/sysext/recordlist/Classes/RecordList/AbstractDatabaseRecordList.php
typo3/sysext/tstemplate/Classes/Controller/TypoScriptTemplateObjectBrowserModuleFunctionController.php

index b5ae46f..e4e73b7 100644 (file)
@@ -72,7 +72,7 @@ class SuggestElement {
                }
                $selector = '
                <div class="' . $containerCssClass . '" id="' . $suggestId . '">
-                       <input type="text" id="' . $fieldname . 'Suggest" value="' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.xlf:labels.findRecord') . '" class="' . $this->cssClass . '-search" />
+                       <input type="search" id="' . $fieldname . 'Suggest" value="' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.xlf:labels.findRecord') . '" class="' . $this->cssClass . '-search" />
                        <div class="' . $this->cssClass . '-indicator" style="display: none;" id="' . $fieldname . 'SuggestIndicator">
                                <img src="' . $GLOBALS['BACK_PATH'] . 'gfx/spinner.gif" alt="' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.xlf:alttext.suggestSearching') . '" />
                        </div>
index 7c8df1e..784338d 100644 (file)
@@ -64,7 +64,7 @@ class QueryView {
        public function form() {
                $out = '
                Search Word:<BR>
-               <input type="text" name="SET[sword]" value="' . htmlspecialchars($GLOBALS['SOBE']->MOD_SETTINGS['sword']) . '"' . $GLOBALS['TBE_TEMPLATE']->formWidth(20) . '><input type="submit" name="submit" value="Search All Records">
+               <input type="search" name="SET[sword]" value="' . htmlspecialchars($GLOBALS['SOBE']->MOD_SETTINGS['sword']) . '"' . $GLOBALS['TBE_TEMPLATE']->formWidth(20) . '><input type="submit" name="submit" value="Search All Records">
                ';
                return $out;
        }
index 09aca35..3ba3ae6 100644 (file)
@@ -26,7 +26,7 @@
        <table cellpadding="0" cellspacing="0" border="0" summary="Search form">
                <tr>
                        <td>###FORM_SEARCHFOR###</td>
-                       <td colspan="2"><input type="text" name="tx_indexedsearch[sword]" value="###SWORD_VALUE###" class="tx-indexedsearch-searchbox-sword sword" /></td>
+                       <td colspan="2"><input type="search" name="tx_indexedsearch[sword]" value="###SWORD_VALUE###" class="tx-indexedsearch-searchbox-sword sword" /></td>
                </tr>
 
                <!-- ###ADDITONAL_KEYWORD### begin -->
index 746f534..a6a078e 100644 (file)
@@ -31,7 +31,7 @@
 
                <div class="tx-indexedsearch-form">
                        <label for="tx-indexedsearch-searchbox-sword">###FORM_SEARCHFOR###</label>
-                       <input type="text" name="tx_indexedsearch[sword]" value="###SWORD_VALUE###" id="tx-indexedsearch-searchbox-sword" class="tx-indexedsearch-searchbox-sword sword" ###PLACEHOLDER#
+                       <input type="search" name="tx_indexedsearch[sword]" value="###SWORD_VALUE###" id="tx-indexedsearch-searchbox-sword" class="tx-indexedsearch-searchbox-sword sword" ###PLACEHOLDER#
 ## />&nbsp;
                </div>
 
index 77f3b8b..db8d9d5 100644 (file)
@@ -6,7 +6,7 @@
        <label for="search_field">
                <f:translate key="enterSearchPhrase" />
        </label>
-       <input type="text" id="search_field" name="search_field" value="{search_field}" style="width:192px;"/>
+       <input type="search" id="search_field" name="search_field" value="{search_field}" style="width:192px;"/>
        <input type="submit" name="search" id="search" value="{f:translate(key: 'search')}"/>
 
        <div class="checkbox">
index 85c0b1b..0f7de0c 100644 (file)
@@ -471,7 +471,7 @@ class AbstractDatabaseRecordList extends \TYPO3\CMS\Backend\RecordList\AbstractR
                                <table border="0" cellpadding="0" cellspacing="0" id="typo3-dblist-search">
                                        <tr>
                                                <td><label for="search_field">' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.xlf:labels.enterSearchString', TRUE) . '</label></td>
-                                               <td><input type="text" name="search_field" id="search_field" value="' . htmlspecialchars($this->searchString) . '"' . $GLOBALS['TBE_TEMPLATE']->formWidth(10) . ' /></td>
+                                               <td><input type="search" name="search_field" id="search_field" value="' . htmlspecialchars($this->searchString) . '"' . $GLOBALS['TBE_TEMPLATE']->formWidth(10) . ' /></td>
                                                <td>' . $lMenu . '</td>
                                                <td><input type="submit" name="search" value="' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.xlf:labels.search', TRUE) . '" /></td>
                                        </tr>
index a2f4132..055e4d6 100644 (file)
@@ -370,8 +370,8 @@ class TypoScriptTemplateObjectBrowserModuleFunctionController extends \TYPO3\CMS
                        $menu .= BackendUtility::getFuncMenu($this->pObj->id, 'SET[ts_browser_toplevel_' . $bType . ']', $this->pObj->MOD_SETTINGS['ts_browser_toplevel_' . $bType], $this->pObj->MOD_MENU['ts_browser_toplevel_' . $bType]);
                        //search
                        $menu .= '<label for="search_field">' . $GLOBALS['LANG']->getLL('search') . '</label>';
-                       $menu .= '<input type="Text" name="search_field" id="search_field" value="' . htmlspecialchars($POST['search_field']) . '"' . $GLOBALS['TBE_TEMPLATE']->formWidth(20) . '/>';
-                       $menu .= '<input type="Submit" name="search" class="tsob-search-submit" value="' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_common.xlf:search') . '" />';
+                       $menu .= '<input type="search" name="search_field" id="search_field" value="' . htmlspecialchars($POST['search_field']) . '"' . $GLOBALS['TBE_TEMPLATE']->formWidth(20) . '/>';
+                       $menu .= '<input type="submit" name="search" class="tsob-search-submit" value="' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_common.xlf:search') . '" />';
                        $menu .= '<div class="checkbox"><label for="checkTs_browser_regexsearch">' . BackendUtility::getFuncCheck($this->pObj->id, 'SET[ts_browser_regexsearch]', $this->pObj->MOD_SETTINGS['ts_browser_regexsearch'], '', '', 'id="checkTs_browser_regexsearch"') . $GLOBALS['LANG']->getLL('regExp') . '</label></div>';
                        $menu .= '</div>';
                        $theOutput .= $this->pObj->doc->section('', '<nobr>' . $menu . '</nobr>');