You also need to check libxml is installed. Check phpinfo() > Dom to see if it is. Bug report filed to get this added here.
This extension requires the libxml PHP extension. This means passing the --with-libxml, or prior to PHP 7.4 the --enable-libxml, configuration flag, although this is implicitly accomplished because libxml is enabled by default.
You also need to check libxml is installed. Check phpinfo() > Dom to see if it is. Bug report filed to get this added here.
Under Fedora packaging ssystems you will need php-xml
=> yum install php-xml