jotform / css.js

A lightweight, battle tested, fast, CSS parser in JavaScript
https://medium.com/jotform-form-builder/writing-a-css-parser-in-javascript-3ecaa1719a43
MIT License
426 stars 63 forks source link

Possible references to domain-specific selector names in applyNamespacing #27

Open jonknowles opened 4 years ago

jonknowles commented 4 years ago

In css.js, there appears to be logic for special behavior for selectors such as '.form-all', '#stage', and '.supernova'. Am I right in assuming that these are specific to the use case that this tool was first developed for and are not related to general CSS rules?

The section with these selector names is here: https://github.com/jotform/css.js/blob/f9704438d2c9d9780ce2f89bd45189d19b94a686/css.js#L568-L582

kemaldaggen commented 4 years ago

@jonknowles Yes you are correct. Those are forgotten and should be removed since this is an open source and kind of general purpose css parser.