mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2025-01-18 11:41: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:
parent
e55fead09f
commit
f23d44f8e5
@ -1759,12 +1759,6 @@ class HTML5TreeConstructer
|
|||||||
|
|
||||||
/* A DOCTYPE token marked as being correct */
|
/* A DOCTYPE token marked as being correct */
|
||||||
} elseif (isset($token['error']) && !$token['error']) {
|
} 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
|
/* Then, switch to the root element phase of the tree construction
|
||||||
stage. */
|
stage. */
|
||||||
$this->phase = self::ROOT_PHASE;
|
$this->phase = self::ROOT_PHASE;
|
||||||
|
Loading…
Reference in New Issue
Block a user