placeholder-shown.js 367 B

1234567891011121314151617
  1. let Selector = require('../selector')
  2. class PlaceholderShown extends Selector {
  3. /**
  4. * Return different selectors depend on prefix
  5. */
  6. prefixed(prefix) {
  7. if (prefix === '-ms-') {
  8. return ':-ms-input-placeholder'
  9. }
  10. return `:${prefix}placeholder-shown`
  11. }
  12. }
  13. PlaceholderShown.names = [':placeholder-shown']
  14. module.exports = PlaceholderShown