0
0
mirror of https://github.com/ezyang/htmlpurifier.git synced 2025-01-03 05:11:52 +00:00

Removed unused variable

Fixes:
1766 Class DOMDocumentType does not have a constructor and must be instantiated without any parameters.
This commit is contained in:
Michael Kliewe 2022-11-18 22:44:20 +01:00 committed by GitHub
parent e55fead09f
commit f23d44f8e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1759,12 +1759,6 @@ class HTML5TreeConstructer
/* A DOCTYPE token marked as being correct */
} elseif (isset($token['error']) && !$token['error']) {
/* Append a DocumentType node to the Document node, with the name
attribute set to the name given in the DOCTYPE token (which will be
"HTML"), and the other attributes specific to DocumentType objects
set to null, empty lists, or the empty string as appropriate. */
$doctype = new DOMDocumentType(null, null, 'HTML');
/* Then, switch to the root element phase of the tree construction
stage. */
$this->phase = self::ROOT_PHASE;