Using *
will find all elements using CSS
But recently I found in some codes the use of *|*
What's the difference between them?
Using *
will find all elements using CSS
But recently I found in some codes the use of *|*
What's the difference between them?
You have the answer to your question here in this OS topic:
But to get ahead for you.
*|*
represents the "all elements in namespace" selector. According to W3C, the selector is divided into:
ns|E
Where ns
is the namespace and E is the element. By default, namespaces are not declared. Then, unless the namespace is explicitly declared, *|*
and *
will select the same elements.