One might use a CSS selector such as a[href^="http:"], a[href^="mailto:"] to match all external and mail links within a document, but is there a way to use an “or” statement within the quotes section of the selector like so: a[href^="(http|mailto):"]?
One might use a CSS selector such as a[href^=http:], a[href^=mailto:] to match all external
Share
As far as I can tell, there’s no way to do what you’re asking. In the CSS selector spec, the pipe character is used for something different when used with attribute selectors. It’s used as a namespace separator.
Per the selector spec on the W3C:
Source: http://www.w3.org/TR/selectors/#attrnmsp