Menu

Comments stripped from CSS

Help
Anonymous
2015-07-09
2015-07-09
  • Anonymous

    Anonymous - 2015-07-09

    Hi,

    I have a CSS file with comments .

    @CHARSET "UTF-8";
    /** FIX - 07, MAY 2015**/
    .thick {
    font-family: 'Lobster', cursive !important;
    background-position: -338px 0px !important;
    }

    After parsing the above content, the comments are stripped out . I get

    @CHARSET "UTF-8";
    .thick {
    font-family: 'Lobster', cursive !important;
    background-position: -338px 0px !important;
    }

    why comments are stripped out ? I require comments for understandability,
    Is there any option to make css parser not to remove css comments /****/ ?

     
    • RBRi

      RBRi - 2015-07-09

      I fear there is no opportunity at the moment because the parser simply ignores comments. Will have a look at this later, maybe there is a chance to improve cssparser. But only if I get this done without breaking backward compatibility.
      RBRi

      Am 9. Juli 2015 10:14:12 MESZ, schrieb Asiya Wahab asiya10@users.sf.net:

      Hi,

      I have a CSS file with comments .

      @CHARSET "UTF-8";
      /** FIX - 07, MAY 2015**/
      .thick {
      font-family: 'Lobster', cursive !important;
      background-position: -338px 0px !important;
      }

      After parsing the above content, the comments are stripped out . I get

      @CHARSET "UTF-8";
      .thick {
      font-family: 'Lobster', cursive !important;
      background-position: -338px 0px !important;
      }

      why comments are stripped out ? I require comments for
      understandability,
      Is there any option to make css parser not to remove css comments
      /****/ ?


      Comments stripped from CSS


      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/cssparser/discussion/283564/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

      WETATOR
      Smart Web Application Testing
      www.wetetor .org

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.