getify/grips

grips-css: function to normalize selectors

Open

#15 ouverte le 11 mars 2014

Voir sur GitHub
 (0 commentaires) (0 réactions) (1 assigné)JavaScript (22 forks)github user discovery
help wanted

Métriques du dépôt

Stars
 (288 stars)
Métriques de merge PR
 (Métriques PR en attente)

Description

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

Guide contributeur