pseudos: Compare against "text" instead of accessing el.type again

Use "text" instead of el.type, should perform slightly better as
it doesn't access the DOM and seems to also gzip slightly better
though that can vary over time with context.