The function returns a two-dimensional array. The first array represents selectors separated by commas (eg. sub1, sub2), the second contains the relevant tokens for that selector. Possible token types are:
name
properties
example
output
tag
name
div
{ type: 'tag', name: 'div' }
universal
-
*
{ type: 'universal' }
pseudo
name, data
:name(data)
{ type: 'pseudo', name: 'name', data: 'data' }
pseudo
name, data
:name
{ type: 'pseudo', name: 'name', data: null }
pseudo-element
name
CSSwhat.stringify(selector) - Turns selector back into a string.
License: BSD-2-Clause
Security contact information
To report a security vulnerability, please use the Tidelift security contact.
Tidelift will coordinate the fix and disclosure.