true, 'domImplementationClass' => \DOMImplementation::class, # 'suppressIdAttribute' => true, ] ); } /** * @param string|null $doctypeName * @param string|null $public * @param string|null $system * @return \DOMDocument */ protected function createDocument( ?string $doctypeName = null, ?string $public = null, ?string $system = null ) { $doctypeName ??= 'html'; // @phan-suppress-next-line PhanTypeMismatchReturn return DOMCompat::newDocument( $doctypeName === 'html' ); } }