Closed
Description
Implementing the library I get an Symfony\Component\Debug\Exception\ ContextErrorException
with the message Warning: DOMXPath::query(): Invalid expression
on line 153.
Debugging this error, apparently the $expression
variable on line 150 equals false.
For now I'mm using a quick fix:
if (! $expression) {
return false;
}
This doens't seem the right solution right?
In the buildExpressionForSelector
function, the $selector
equals @fontface.
An exceptioninterface is being thrown with the message Expected selector, but <delimiter "@" at 0> found.
. false
is being returned and that's why the DOMXpath warning is thrown.
Any idea on how to fix this?
Anyhow this library is awesome 👍