diff options
author | arv@chromium.org <arv@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-24 17:03:05 +0000 |
---|---|---|
committer | arv@chromium.org <arv@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-24 17:03:05 +0000 |
commit | 50700d1148a21a623b7cd9b9389e82f5127ed66f (patch) | |
tree | a3a06d08eb84571608134518278c4d8f5f324ce8 | |
parent | 77fc466b03be0309c3c2d7db225f5b7e6a0276c6 (diff) | |
download | chromium_src-50700d1148a21a623b7cd9b9389e82f5127ed66f.zip chromium_src-50700d1148a21a623b7cd9b9389e82f5127ed66f.tar.gz chromium_src-50700d1148a21a623b7cd9b9389e82f5127ed66f.tar.bz2 |
Fixes issue where the placeholder text was not shown because there is no DOM
property for the placeholder attribute.
BUG=10940
TEST=Make sure that the search boxes (not Search your history) on the new tab
page has place holder text.
Review URL: http://codereview.chromium.org/92107
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@14435 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | chrome/browser/resources/new_tab.html | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/chrome/browser/resources/new_tab.html b/chrome/browser/resources/new_tab.html index 8eb0edc..43ef76a 100644 --- a/chrome/browser/resources/new_tab.html +++ b/chrome/browser/resources/new_tab.html @@ -679,8 +679,9 @@ function makeSearchURL(url) { </form> */ var input = DOM('input', {type:'text', - className: 'hint', - placeholder: url.short_name}); + className: 'hint'}); + // There is no DOM property for placeholder. + input.setAttribute('placeholder', url.short_name); input.keyword = url.keyword; if (url.favIconURL) { |