NV / CSSOM

Unmaintained! ⚠️ CSS Object Model implemented in pure JavaScript. Also, a CSS parser.
https://nv.github.io/CSSOM/docs/parse.html
MIT License
751 stars 99 forks source link

Invalid selector parsing #76

Open domenic opened 9 years ago

domenic commented 9 years ago

This CSS:

.block-title .block-title-inner a:visited { color: #48484d; } // MAIN MENU - (used to keep mobile menu options hidden and keep weather/search and menu on one line) // #tncms-region-nav-main-nav-right-nav { float:left; } #tncms-region-main-nav-right-region { float:right; }

causes cssom to parse the selectorText

//MAIN MENU - (used to keep mobile menu options hidden and keep weather/search and menu on one line) // #tncms-region-nav-main-nav-right-nav

where it should probably just throw out that entire rule. That is what Chrome does, at least.