rstacruz / nprogress

For slim progress bars like on YouTube, Medium, etc
http://ricostacruz.com/nprogress
MIT License
25.99k stars 1.81k forks source link

Suggestion: Don't use id for CSS Selection #192

Open cnsgithub opened 6 years ago

cnsgithub commented 6 years ago

https://github.com/CSSLint/csslint/wiki/Disallow-IDs-in-selectors

var progress = document.createElement('div');
    progress.id = 'nprogress';

nprogress -> .nprogress