Skip to content

Commit 45ecc47

Browse files
authored
Update placeholder-shown.js
1 parent f6bab39 commit 45ecc47

File tree

1 file changed

+2
-17
lines changed

1 file changed

+2
-17
lines changed

lib/hacks/placeholder-shown.js

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,14 @@
11
let Selector = require('../selector')
2-
let utils = require('../utils')
32

43
class PlaceholderShown extends Selector {
5-
constructor(name, prefixes, all) {
6-
super(name, prefixes, all)
7-
8-
if (this.prefixes) {
9-
this.prefixes = utils.uniq(this.prefixes.map(() => '-ms-'))
10-
}
11-
}
12-
13-
/**
14-
* Add old mozilla to possible prefixes
15-
*/
16-
possible() {
17-
return super.possible().concat(['-moz- old'])
18-
}
19-
204
/**
215
* Return different selectors depend on prefix
226
*/
237
prefixed(prefix) {
248
if (prefix === '-ms-') {
259
return ':-ms-input-placeholder'
26-
} else if (prefix === '-moz- old') {
10+
}
11+
if (prefix === '-moz-') {
2712
return ':-moz-placeholder'
2813
}
2914
return `:${prefix}placeholder-shown`

0 commit comments

Comments
 (0)