What is the difference between * and * | *

5

Using * will find all elements using CSS

But recently I found in some codes the use of *|*

What's the difference between them?

    
asked by anonymous 26.01.2016 / 14:16

1 answer

7

You have the answer to your question here in this OS topic:

link

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.

    
26.01.2016 / 14:25