• Stars
    star
    949
  • Rank 48,153 (Top 1.0 %)
  • Language
    JavaScript
  • Created almost 13 years ago
  • Updated almost 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A JavaScript polyfill for the HTML5 placeholder attribute

#Placeholders.js - An HTML5 placeholder attribute polyfill

Placeholders.js is a polyfill (or shim, or whatever you like to call it) for the HTML5 placeholder attribute, as defined in the HTML5 specification. Placeholder attributes are valid on input elements of various types and textarea elements.

Placeholders.js is licensed under the MIT License. See the unminified file for the full license text.

Get it!

The polyfill is available through Bower:

bower install placeholders

Alternatively, you can download the polyfill and get a whole load of information and instructions at our website. If you're using Ruby on Rails, you can also try out our gem.

Supported Browsers

Placeholders.js aims to support the widest range of browsers possible. The idea is that you will be able to use the native placeholder attribute along with Placeholders.js and your users on any platform will get the same experience. This table will be updated as and when further browsers are tested. Mobile browser testing is a big one that's high on the list. Currently tested and working in the following browsers on (where applicable) both Windows 7 and CentOS 6:

  • Internet Explorer 6 - 9 (with Placeholders.js)
  • Firefox 1 - 3 (with Placeholders.js), 4+ (native)
  • Opera 7 - 10 (with Placeholders.js), 11+ (native)
  • Safari 3.2 (with Placeholders.js), 4+ (native)
  • Chrome 4+ (native)
  • Flock 1.0+ (with Placeholders.js)
  • Konqueror 4.3 (with Placeholders.js)
  • SeaMonkey 1+ (with Placeholders.js)
  • Maxthon 1+ (with Placeholders.js)
  • SlimBrowser 5 (with Placeholders.js)
  • K-Meleon 0.7+ (with Placeholders.js)

Do you use some obscure browser that doesn't have native placeholder attribute support? If so, please let me know so I can make sure Placeholders.js works with it.

More Repositories

1

jslint-error-explanations

๐Ÿ“ Explanations of all the (sometimes cryptic) error messages thrown by JSLint and JSHint
293
star
2

Progressive.js

Interact with the DOM before it's ready!
JavaScript
38
star
3

generator-restangular

A Yeoman generator for AngularJS apps with RestAngular
JavaScript
18
star
4

notepadplus-jQuery

User defined language files to add jQuery code hinting to Notepad++
17
star
5

patchwork.js

Monkey-patch native JavaScript constructor functions
JavaScript
13
star
6

tweetserver

A simple Node.js server for fetching and caching Tweets
JavaScript
7
star
7

Patterns.js

A JavaScript polyfill for the HTML5 input element pattern attribute
JavaScript
6
star
8

grunt-append-sourcemapping

Grunt task to append sourcemapping URL comments to JavaScript files
JavaScript
4
star
9

front-end-build

Don't use this. It was an experiment. Use Grunt.
JavaScript
3
star
10

jquery.unwrapuntil

A simple jQuery plugin to unwrap multiple ancestors of an element
JavaScript
2
star
11

springy

๐Ÿ“ˆ A Doodle Jump clone in <1kB. My entry to JS1K 2013.
JavaScript
2
star
12

couch-promised

A promise-based interface to CouchDB
JavaScript
2
star
13

sublime-setup

Personal configuration for Sublime Text 2
Shell
2
star
14

generator-kudu

A Yeoman generator for Kudu apps
JavaScript
2
star
15

generator-babel-express

A Yeoman generator for ES2015 Express apps with Babel
JavaScript
2
star
16

web-summer-camp-2017-workshop

โ˜€๏ธ The code behind the workshop at Web Summer Camp 2017 in Rovinj
JavaScript
2
star
17

angular-petclinic-api

A demo REST API to be consumed by the AngularJS PetClinic example app
JavaScript
1
star
18

dotfiles

๐Ÿ”ง My personal OS X configuration and setup
Vim Script
1
star
19

couch-promised-benchmarks

Benchmarks to compare CouchPromised to Qouch
JavaScript
1
star
20

credential-management-api-demo

A small app to demonstrate the Credential Management API
JavaScript
1
star
21

eslint-config

My personal ESLint config
JavaScript
1
star
22

talks

Slides for talks I've given/plan to give
1
star
23

poker-player-mammaldev

๐Ÿ’ท My attempt at Lean Poker at FullStackCon 2015
JavaScript
1
star