Active
Project:
Drupal core
Version:
main
Component:
base system
Priority:
Major
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
16 Jan 2024 at 09:59 UTC
Updated:
25 Oct 2026 at 14:44 UTC
Jump to comment: Most recent
We're using masterminds/html5 to support HTML5 parsing, especially in the filter system and Big Pipe. @berdir reported a performance regression (at least when profiling, less obvious when looking at raw timings when not profiling) in HTML parsing with Big Pipe.
PHP 8.4 will have native HTML5 support, so we should use that when it's available - we can put it behind a PHP version check in Drupal\Component\Utility\HTML::load(), and then drop masterminds/html5 when we require PHP 8.4 or higher (in Drupal 12).
https://wiki.php.net/rfc/domdocument_html5_parser
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
catchComment #3
gábor hojtsyPHP 8.4 release schedule is published at https://wiki.php.net/todo/php84, I opened #3427903: [META] Make Drupal 10/11 compatible with PHP 8.4 as a parent meta :)
Comment #6
prudloff commentedDuplicate of #3463613: Explore PHP 8.4 native HTML 5 parser vs html5-php?