Closed jmak35 closed 4 years ago
Thanks for reporting this. There was a problem in function argument validation. Now, the NPE issue should be fixed. But please note that the website you mention uses custom CSS properties (var(--xxx)
), which is not yet supported by jStyleParser.
Thank you for addressing this swiftly. I'll try again and check this out soon.
Hi there,
I'm very interested in using your library for a pet project of mine. I'm running version 4.17 of CSSBox and therefore version 3.5 of jStyleParser.
My aim is to retrieve all the styles for each element in the websites contentful.com and sportingnews.com/au/nba. My code is below.
It comes back with this NPE though when
da.getStyleSheets()
is called:The same happens if I run the following code after following your readme:
I tried running the above code with the URL sportingnews.com/au/nba instead and get an NPE iff I run in debug mode, in the
DeclarationTransformerImpl
class. When!property.equalsInherit()
is called,property
isnull
. The rule is a transition of "top 0.3s ease-in-out" and it is trying to settop
as a transition duration in my understanding sinceterm
is set to"top"
andtype
is set to"cz.vutbr.web.css.CSSProperty$TransitionDuration"
Could you please let me know if these NPEs can be fixed at all? I see so much promise with this library, I would hate to pass on it as I really want to continue with java instead of trying another approach with javascript.
Thank you in advance.