We get the following output:
When running the script using classic and namespaces packages.
What version of PHP are you using? It could be a PHP Tidy problem.
phpdocx 9.0 premium licenses include HTML Extended to this and other specific uses but we are searching a solution to be used with your Advanced license.