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

DOMXPath::query(): Unfinished literal error #227

Open
SergeyBel opened this issue May 16, 2022 · 1 comment
Open

DOMXPath::query(): Unfinished literal error #227

SergeyBel opened this issue May 16, 2022 · 1 comment

Comments

@SergeyBel
Copy link

Parsing the }\c{ css results in a error:

Code:

$cssToInlineStyles = new CssToInlineStyles();

echo $cssToInlineStyles->convert('<html></html>', '}\c{');

Result: DOMXPath::query(): Unfinished literal

Info:

[message] => DOMXPath::query(): Unfinished literal
[file] => CssToInlineStyles.php
[line] => 179

Found by https://github.com/SergeyBel/php-classfuzz

@stof
Copy link
Collaborator

stof commented May 17, 2022

Well, passing invalid CSS is not guaranteed to be processed without an error. I don't see anything to fix here.

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

2 participants