We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
<?php $repeated = str_repeat('a', 50000); $html = <<<HTML <!DOCTYPE html> <html lang="en"> <body> <svg> <path d="{$repeated}" /> </svg> <div>
</div> </body> </html> HTML; // this reports tokenizer error control-character-reference in Entity, line: 53, column: 883 $Document = \Dom\HTMLDocument::createFromString($html);
This only happens for tokenizer errors, but not tree errors: change 
 to <hr /> and it will correctly report line: 7, column: 9-10.


<hr />
8.4.3
No response
The text was updated successfully, but these errors were encountered:
Fix phpGH-17486: Incorrect error line numbers reported in Dom\HTMLDoc…
51714f3
…ument::createFromString
c7a8195
1da4603
21c170c
Merge branch 'PHP-8.4'
72708f2
* PHP-8.4: Fix GH-17481: UTF-8 corruption in \Dom\HTMLDocument Fix GH-17486: Incorrect error line numbers reported in Dom\HTMLDocument::createFromString
nielsdos
Successfully merging a pull request may close this issue.
Description
This only happens for tokenizer errors, but not tree errors: change


to<hr />
and it will correctly report line: 7, column: 9-10.PHP Version
8.4.3
Operating System
No response
The text was updated successfully, but these errors were encountered: