Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

Comments/charset declarations are included in selectors #97

Open
tomdenbraber opened this issue Dec 17, 2015 · 0 comments
Open

Comments/charset declarations are included in selectors #97

tomdenbraber opened this issue Dec 17, 2015 · 0 comments

Comments

@tomdenbraber
Copy link

Hi,

I encountered the problem that the CSS parser includes comments in selector names. Example CSS:

/* A comment before a selector*/
h1 {
   /* 
     some redundant selectors here
     ...
   */ 
}

Let's assume h1 contains redundancy and ends up in the JSON structure. This JSON structure now contains a selector in the list called "/* A comment before a selector*/h1", while the correct selector is just "h1".

The same problem occurs when having a @charset declaration just before a selector.

Thanks in advance!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant