Skip to content
New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strange parsing of comments. #184

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

Strange parsing of comments. #184

andwhyisit opened this issue Sep 11, 2011 · 2 comments
Labels
Milestone

Comments

@andwhyisit
Copy link

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.

@nzakas
Copy link
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?

@andwhyisit
Copy link
Author

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:
#184 (comment)

@nzakas nzakas closed this as completed in 73abb31 Sep 21, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants