question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Invalid selector is causing unrecoverable error

See original GitHub issue

Hi again Philip, it’s been a while!

I am having the following situation and I wonder if you could give any advice here. It’s possible that it’s not your parser’s responsibility but perhaps you could point to a way to work around this with your APIs.

So, one of the goals of our application when it comes to CSS parsing is to transform all the url()-s in it. We do so by using the CSSVisitor.visitCSSUrl() method.

However, when we have CSS like this:

body {
    background: url(../bg.png);
}
.#f { color: red; }

the parser fails unrecoverably on the .#f selector and so we’re unable to transform the URLs. We’re using v4.0.0 with CSS3 parser and .setBrowserCompliantMode(true) - which, as I imagined, shouldn’t have treated such error as unrecoverable - as browser doesn’t.

Sorry if my questions are noob - I am by no means a Java programmer. Thanks

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:18 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
phaxcommented, Apr 20, 2016

Locally things are working. Please check with the latest SNAPSHOT

0reactions
phaxcommented, Apr 20, 2016

Thanks for the info and good luck for JMeter!! It’s a great tool I’m also using!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Invalid selector - WebDriver - MDN Web Docs
The invalid selector error is a WebDriver error that occurs when an element retrieval command is used with an unknown web element selector...
Read more >
“Unrecognized selector sent to ins… | Apple Developer Forums
I am trying to create a DropDownMenu class, but when I try to call addTarget to a UIButton this error comes up... 'unrecognized...
Read more >
An 'Unrecoverable error…' message appears when launching ...
An 'Unrecoverable error…' message appears when launching CES Selector. There are two known causes of this issue. This error will appear if you...
Read more >
ios - Unrecognized selector sent to instance ... - Stack Overflow
I'm unable to understand this particular error on Core Foundation which is affecting multiple users in my application. The flow is not breaking ......
Read more >
Cannot install or use ssoadm in AM 6.0.0.x, 6.5.0 and 6.5.0.1 ...
The following error is shown when you try to install ssoadm (even though ... 40636(2) SelectorRunner, fatal error: 40: no cipher suites in ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found