<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent posts to Discussion</title><link>https://sourceforge.net/p/cssparser/discussion/</link><description>Recent posts to Discussion</description><atom:link href="https://sourceforge.net/p/cssparser/discussion/feed.rss" rel="self"/><language>en</language><lastBuildDate>Wed, 03 Nov 2021 15:12:43 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/cssparser/discussion/feed.rss" rel="self" type="application/rss+xml"/><item><title>parseSelectors returning null</title><link>https://sourceforge.net/p/cssparser/discussion/283564/thread/3dca98e5a4/?limit=25#773c</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hi, having some trouble with parseSelectors.&lt;br/&gt;
Mostly following the example in the documentation:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;        InputSource source = new InputSource(new StringReader(css));
        CSSOMParser parser = new CSSOMParser(new SACParserCSS3());
        SelectorList selectorList = parser.parseSelectors(source);
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;Where css is a simple string eg &lt;strong&gt;div { background-color: black; }&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;But while parser.parseStyleSheet operation is working, parseSelectors always returns null whatever css i try. Any tips ?&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">tgx</dc:creator><pubDate>Wed, 03 Nov 2021 15:12:43 -0000</pubDate><guid>https://sourceforge.net686694017647646d05e28e3a1374e986cd970d0a</guid></item><item><title>What to use: HTMLUnit-Cssparser or CSSparser?</title><link>https://sourceforge.net/p/cssparser/discussion/283563/thread/6862c80116/?limit=25#9e28</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;since there exists on github CSSParser with HtmlUnit (https://github.com/HtmlUnit/htmlunit-cssparser) I recongize that the classes are not compatible to each other. The &lt;a class="" href="https://stackoverflow.com/a/21757928/325868" rel="nofollow"&gt;code for inlining CSS &lt;/a&gt; won't work nor if I want to use the individual CSSParseException (from the &lt;a class="" href="http://cssparser.sourceforge.net/gettingStarted.html" rel="nofollow"&gt;Introduction&lt;/a&gt;).&lt;/p&gt;
&lt;p&gt;Is there a migration guide? Is the current repro updated as well?&lt;/p&gt;
&lt;p&gt;thx&lt;br/&gt;
leo&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">LeO</dc:creator><pubDate>Wed, 18 Aug 2021 09:21:27 -0000</pubDate><guid>https://sourceforge.net3f03b8092ac83511419ca2bbf8b0d93bd1e597db</guid></item><item><title>Validating CSS</title><link>https://sourceforge.net/p/cssparser/discussion/general/thread/0fdd9d413d/?limit=25#f668</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;I have downloaded CSSParser and hoped(or hope even)  to use it to 'poperly'validate CSS (CSS 3).&lt;br/&gt;
I currently use the Jigsaw web service and interpret the SOAP responses, but what I really want is a library to embed in my code (which is in fact an Eclipse plugin in this case) rather than use a web service. &lt;br/&gt;
The trouble is though that it doesn't seem  that CSSParser validates beyond basic syntactical constructs.&lt;br/&gt;
For example, if I have a rule cursor: hand , then Jigsaw tells me this is incorrect (similarly other inappropriate values for rules), and also gives warnings for unknown or browser specific rule names. In contrast, CSSParser seems to be letting these through without even a warning.&lt;br/&gt;
Is this expected behavior or am I missing something (e.g. a configuration or a dependency jar)?&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Darren F Hurt</dc:creator><pubDate>Thu, 28 Feb 2019 12:24:42 -0000</pubDate><guid>https://sourceforge.netcda148e2703e1e6e942e5ea03d0bca668b5cde9c</guid></item><item><title>java.util.EmptyStackException</title><link>https://sourceforge.net/p/cssparser/discussion/general/thread/decc1daf/?limit=25#0923</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Okay, I found out that CSSOMParser is not threadsafed. Fixed by using separate CSSOMParser instance each time.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Hieu Rocker</dc:creator><pubDate>Mon, 25 Jun 2018 08:42:11 -0000</pubDate><guid>https://sourceforge.net9ce2c52ad39f43bd6d96e692685fbebf137c741b</guid></item><item><title>java.util.EmptyStackException</title><link>https://sourceforge.net/p/cssparser/discussion/general/thread/decc1daf/?limit=25#2370</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;I'm getting the same issue. But not sure what was your ClassLoader issue. I don't see any ClassLoader here.&lt;/p&gt;
&lt;p&gt;@Hayri: can you give more details?&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Hieu Rocker</dc:creator><pubDate>Mon, 25 Jun 2018 04:24:12 -0000</pubDate><guid>https://sourceforge.net16eed4b80b27f50586b78fb9c38bc61e89852d9c</guid></item><item><title>Comments handling in CSSParser Vs Browser behavior</title><link>https://sourceforge.net/p/cssparser/discussion/283564/thread/3ac7ced6/?limit=25#ff22</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;I have updated CSSParser from version 0.9.3 to version 0.9.5.&lt;br/&gt;
The issue hasn't been solved yet.&lt;/p&gt;
&lt;p&gt;There are no news yet?&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">.Maui</dc:creator><pubDate>Wed, 25 Apr 2018 10:11:34 -0000</pubDate><guid>https://sourceforge.net6aa6ee9f2eae218fd6712e8b851e9650c31ee98c</guid></item><item><title>Thread safety</title><link>https://sourceforge.net/p/cssparser/discussion/283564/thread/75f99832/?limit=25#c314</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I see that the &lt;code&gt;CSSOMParser&lt;/code&gt; constructor is synchronized, however it's not immediately apparent that any of its methods are thread-safe. Is this library thread safe or do I need to synchronize access to &lt;code&gt;parseStylesheet()&lt;/code&gt;?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Joseph Naegele</dc:creator><pubDate>Fri, 06 Apr 2018 15:01:48 -0000</pubDate><guid>https://sourceforge.net1e1c690625783c5980f2100a76ea25cde739c75d</guid></item><item><title>Comments handling in CSSParser Vs Browser behavior</title><link>https://sourceforge.net/p/cssparser/discussion/283564/thread/3ac7ced6/?limit=25#d5c1/2f35/193a</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Is this issue resolved ? or Do you require solution in the form of javacc parser generated file ? if so can you share the procedure for generation and share that file ?&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Asiya</dc:creator><pubDate>Mon, 27 Nov 2017 06:34:52 -0000</pubDate><guid>https://sourceforge.net4652aff47f487888f34d3ab7c982c20a11b30871</guid></item><item><title>Comments handling in CSSParser Vs Browser behavior</title><link>https://sourceforge.net/p/cssparser/discussion/283564/thread/3ac7ced6/?limit=25#80d6</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Is the above issue fixed, please let us know because it helps me a lot.&lt;/p&gt;
&lt;p&gt;Thanks in advance..&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Aniv</dc:creator><pubDate>Wed, 07 Jun 2017 18:34:12 -0000</pubDate><guid>https://sourceforge.net8cecd41e7d2f6fde0ed7c7dae287f3ea6be1a08e</guid></item><item><title>Comments handling in CSSParser Vs Browser behavior</title><link>https://sourceforge.net/p/cssparser/discussion/283564/thread/3ac7ced6/?limit=25#d5c1</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;is the following changes in SACParserCSS3.java &amp;gt; styleDeclaration() works for above case ? &lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;final public void styleDeclaration() throws ParseException {
    switch ((jj_ntk==-1)?jj_ntk_f():jj_ntk) {
    case IDENT:
    case ASTERISK:{
      declaration();
      break;
      }
    default:
      jj_la1[89] = jj_gen;
      ;
    }
    label_58:
    while (true) {
      switch ((jj_ntk==-1)?jj_ntk_f():jj_ntk) {
      case SEMICOLON:{
        ;
        break;
        }
      default:
        jj_la1[90] = jj_gen;
        break label_58;
      }
      jj_consume_token(SEMICOLON);
      label_59:
      while (true) {
        switch ((jj_ntk==-1)?jj_ntk_f():jj_ntk) {
        case S:{
          ;
          break;
          }
        default:
          jj_la1[91] = jj_gen;
          break label_59;
        }
        jj_consume_token(S);
      }
      switch ((jj_ntk==-1)?jj_ntk_f():jj_ntk) {
      case IDENT:
      case ASTERISK:{
        declaration();
        break;
        }
      **/* FIX : To handle single line comments */           
      case SLASH:{
        error_skipdecl();  
        break;
      }**
      default:
        jj_la1[92] = jj_gen;
        ;
      }
    }
  }
&lt;/pre&gt;&lt;/div&gt;

&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Asiya</dc:creator><pubDate>Fri, 10 Mar 2017 10:33:52 -0000</pubDate><guid>https://sourceforge.net4825a0398ae0d061450fa305d82bd839916c52ba</guid></item></channel></rss>