2023-08-17 09:47:40 +00:00
|
|
|
let Selector = require('../selector')
|
2022-01-21 08:28:41 +00:00
|
|
|
|
2023-08-17 09:47:40 +00:00
|
|
|
class PlaceholderShown extends Selector {
|
2022-01-21 08:28:41 +00:00
|
|
|
/**
|
|
|
|
* Return different selectors depend on prefix
|
|
|
|
*/
|
2023-08-17 09:47:40 +00:00
|
|
|
prefixed(prefix) {
|
2022-01-21 08:28:41 +00:00
|
|
|
if (prefix === '-ms-') {
|
2023-08-17 09:47:40 +00:00
|
|
|
return ':-ms-input-placeholder'
|
2022-01-21 08:28:41 +00:00
|
|
|
}
|
2023-08-17 09:47:40 +00:00
|
|
|
return `:${prefix}placeholder-shown`
|
|
|
|
}
|
|
|
|
}
|
2022-01-21 08:28:41 +00:00
|
|
|
|
2023-08-17 09:47:40 +00:00
|
|
|
PlaceholderShown.names = [':placeholder-shown']
|
2022-01-21 08:28:41 +00:00
|
|
|
|
2023-08-17 09:47:40 +00:00
|
|
|
module.exports = PlaceholderShown
|