diff options
author | Asmir Mustafic <[email protected]> | 2019-03-10 13:02:28 +0100 |
---|---|---|
committer | Asmir Mustafic <[email protected]> | 2019-03-10 13:02:28 +0100 |
commit | 707c2ff7b7ccbc1ebfabbde12ef92e2dce47714c (patch) | |
tree | 5a96a4d03b60e69f765a0db66b8c6c02d34b37b6 /src/HTML5/Parser | |
parent | c961ca6a0a81dc6b55b6859b3f9ea7f402edf9ad (diff) |
drop hhvm support
Diffstat (limited to 'src/HTML5/Parser')
-rw-r--r-- | src/HTML5/Parser/DOMTreeBuilder.php | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/src/HTML5/Parser/DOMTreeBuilder.php b/src/HTML5/Parser/DOMTreeBuilder.php index f01cf4d..9894625 100644 --- a/src/HTML5/Parser/DOMTreeBuilder.php +++ b/src/HTML5/Parser/DOMTreeBuilder.php @@ -391,11 +391,6 @@ class DOMTreeBuilder implements EventHandler // to avoid spl_object_hash collisions whe have to avoid garbage collection of $ele storing it into $pushes // see https://bugs.php.net/bug.php?id=67459 $this->pushes[spl_object_hash($ele)] = array($pushes, $ele); - - // SEE https://github.com/facebook/hhvm/issues/2962 - if (defined('HHVM_VERSION')) { - $ele->setAttribute('html5-php-fake-id-attribute', spl_object_hash($ele)); - } } foreach ($attributes as $aName => $aVal) { @@ -509,12 +504,7 @@ class DOMTreeBuilder implements EventHandler $lname = Elements::normalizeSvgElement($lname); } - // See https://github.com/facebook/hhvm/issues/2962 - if (defined('HHVM_VERSION') && ($cid = $this->current->getAttribute('html5-php-fake-id-attribute'))) { - $this->current->removeAttribute('html5-php-fake-id-attribute'); - } else { - $cid = spl_object_hash($this->current); - } + $cid = spl_object_hash($this->current); // XXX: HTML has no parent. What do we do, though, // if this element appears in the wrong place? |