Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

search on latin characters throws error #199

Open
Granaat opened this issue May 12, 2023 · 0 comments
Open

search on latin characters throws error #199

Granaat opened this issue May 12, 2023 · 0 comments

Comments

@Granaat
Copy link

Granaat commented May 12, 2023

$dom = new Document($url, true);
$dom->first("#panel-spécifications");

throws:

Fatal error: Uncaught DiDom\Exceptions\InvalidSelectorException: Invalid selector "écifications". in ...\vendor\imangazaliev\didom\src\DiDom\Query.php:463 Stack trace: #0 ...\vendor\imangazaliev\didom\src\DiDom\Query.php(115): DiDom\Query::getSegments('\xC3\xA9cifications') #1 ...\vendor\imangazaliev\didom\src\DiDom\Query.php(74): DiDom\Query::parseAndConvertSelector('\xC3\xA9cifications', '//') #2 ...\vendor\imangazaliev\didom\src\DiDom\Query.php(53): DiDom\Query::cssToXpath('#rlta-panel-sp\xC3...') #3 ...\vendor\imangazaliev\didom\src\DiDom\Document.php(449): DiDom\Query::compile('#rlta-panel-sp\xC3...', 'CSS') #4 ...\vendor\imangazaliev\didom\src\DiDom\Query.php on line 463

Even when htmlencoding the accents.

@Granaat Granaat changed the title find on latin characters throws error search on latin characters throws error May 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant