Reputation: 2412
I'm using :not()
pseudoclass this way:
:not(_)
to increase the specificity of my selector. It does its job but I would like to know what is the meaning of this underscore and what impact on specificity (0,0,0) it has.
Upvotes: 0
Views: 164
Reputation: 136766
That's a simple Type selector, just one you're unlikely to find in normal circumstances.
var el = document.createElement('_');
document.body.append(el);
el.textContent = 'Hello';
_{ color: green; }
Say
Moreover when <_>
markup wouldn't be valid.
<_>hello</_>
Upvotes: 1