Migrate from GitHub to SourceForge with this tool. Check out all of SourceForge's recent improvements.
Close

#66 CSS_STRING value reports error when requesting string

0.9.20
closed
RBRi
None
1
2016-07-23
2016-07-21
No

Let's assume the following CSS snippet

#p1 {background-color: rgba(255, 0, 0, 0.3);}

The primitive type reports CSS_STRING which I think is ok given that there is no CSS_RGBACOLOR (just CSS_RGBCOLOR).

When retrieving the string value using primValue.getStringValue() it throws an exception (com.steadystate.css.dom.DOMExceptionImpl: This isn't a String type).

Note: toString() works just fine.

The issue seems relate to https://sourceforge.net/p/cssparser/mailman/cssparser-developers/thread/5190EBDC.2020800@docner.com/ but using the latest version (0.9.19) I do still encounter the issue described above.

Thanks!

Discussion

  • RBRi

    RBRi - 2016-07-21
    • status: open --> pending
    • assigned_to: RBRi
     
  • RBRi

    RBRi - 2016-07-21

    did a quick fix
    please use the latest snapshot

     
  • Daniel Peintner

    Daniel Peintner - 2016-07-22

    Did check snaphot version cssparser-0.9.20-20160721.090615-5.jar which does resolve the issue.

    Thanks!

     
  • RBRi

    RBRi - 2016-07-23

    Thnaks for the feedback. Enjoy using CSSParser.

     
  • RBRi

    RBRi - 2016-07-23
    • status: pending --> closed
     

Anonymous
Anonymous

Cancel  Add attachments