Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Strange parsing of comments. #184

Closed
andwhyisit opened this Issue Sep 11, 2011 · 2 comments

Comments

Projects
None yet
2 participants

For some reason CSS Lint reads /*/ as a complete comment (instead of an opening comment and a slash) and then processes the rest of the comment as css. No browser has done this in over 9 years.

Contributor

nzakas commented Sep 11, 2011

Can you please provide some sample CSS and describe what you saw when you ran it through CSS Lint?

Try this line as an example:

//remainderofcomment/ .dummyclass {font-size:12px;}

A browser would parse this as CSS:

.dummyclass {font-size:12px;}

..and this as a comment:

//remainderofcomment/

Css lint parses the following as CSS:

remainderofcomment*/ .dummyclass {font-size:12px;}

..and this as a comment:

/*/

Date: Sun, 11 Sep 2011 09:27:17 -0700
From: reply@reply.github.com
To: realmmaster26@hotmail.com
Subject: Re: [csslint] Strange parsing of comments. (#184)

Can you please provide some sample CSS and describe what you saw when you ran it through CSS Lint?

Reply to this email directly or view it on GitHub:
stubbornella#184 (comment)

@nzakas nzakas closed this in 73abb31 Sep 21, 2011

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment