Placeholder text is not shown in the standard DOM. To find it through DevTools's element inspection, you have to enable the Shadow DOM.
To do so:
Chrome & Safari
- Open DevTools
- Click the Settings icon (at time of writing: a cog icon in the top right)
- On the Preferences tab (at time of writing this is open by default), scroll to Elements
- Check the User agent shadow DOM checkbox
- Close the settings pane
- Inspect the input field
- Expand the input field and expand the
#shadow-rootnode below it - Click the pseudo-attribute inside it
Firefox
- Open DevTools
- Click the Settings icon (at time of writing: triple dots in the top right)
- Click Settings
- Under Inspector, check the checkbox for Show Browser Shadow DOM
- Inspect the input field
- Expand the input field and expand the
#shadow-rootnode below it - Click the pseudo-attribute inside it