The difference between * and *|*

Asked

Viewed 70 times

5

Using * I will find all elements using CSS

but recently found in some codes the use of *|*

what the difference between them?

1 answer

7


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

https://stackoverflow.com/questions/34987370/what-is-the-difference-between-and-in-css

But in advance for you. *|* represents the selector of "all elements in the namespace". According to the W3C, The selector is divided into:

ns|E

Where ns is the namespace and E is the element. By default, namespaces are not declared. So unless the namespace is explicitly declared, *|* and * will select the same elements.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.