grips icon indicating copy to clipboard operation
grips copied to clipboard

grips-css: function to normalize selectors

Open getify opened this issue 11 years ago • 0 comments

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

getify avatar Mar 11 '14 16:03 getify