getify/grips

grips-css: function to normalize selectors

Aperta

#15 aperta il 11 mar 2014

 (0 commenti) (0 reazioni) (1 assegnatario)JavaScript (22 fork)github user discovery
help wanted

Metriche repository

Star
 (288 stelle)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

Whenever selectors are processed by the codegen, and they are base64 encoded for the grips partial id's, these selectors need to be normalized. Whenever render(..) is called with a selector, that selector should be normalized, so it can match when base64 encoded the proper grips partial.

Examples of necessary normalizations:

foo     bar

-> foo bar

foo     >       bar

-> foo > bar

foo    /* something */    bar

-> foo bar

Guida contributor