CssToInlineStyles icon indicating copy to clipboard operation
CssToInlineStyles copied to clipboard

DOMXPath::query(): Unfinished literal error

Open SergeyBel opened this issue 2 years ago • 1 comments

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

SergeyBel avatar May 16 '22 19:05 SergeyBel

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

stof avatar May 17 '22 07:05 stof