Browse Source

- Added license (cleared with simonp).

- Added authors.
- Removed obsolete elements.

svn path=/trunk/; revision=15872
tags/stw2018
ato 9 years ago
parent
commit
2d1a319ce6
1 changed files with 5 additions and 3 deletions
  1. 5
    3
      scripts/placeholder.js

+ 5
- 3
scripts/placeholder.js View File

@@ -2,6 +2,11 @@
* This is an implementation of the placeholder="" attribute as
* implemented in WebKit.
*
* Written by Simon Pieters <simonp@opera.com>
* Improved by Andreas Tolf Tolfsen <ato@fsfe.org>
*
* Licensed under the MIT license.
*
* Suggested styling: input[_placeholder_on] { color:GrayText; }
*/

@@ -21,10 +26,7 @@ if (!HTMLInputElement.prototype.__lookupGetter__("placeholder")) {
elm.type != "button" &&
elm.type != "submit" &&
elm.type != "reset" &&
elm.type != "add" &&
elm.type != "remove" &&
elm.type != "move-up" &&
elm.type != "move-down" &&
elm.type != "file" &&
elm.type != "hidden" &&
elm.type != "image" &&

Loading…
Cancel
Save