X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=vendor%2Fmasterminds%2Fhtml5%2Fsrc%2FHTML5%2FParser%2FTokenizer.php;h=1f6868bc04fc086ab15a04cd2a45daa07aaf9008;hp=c42bc3d86ed968f6301adeaca72e2a93f82afe86;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hpb=74df008bdbb3a11eeea356744f39b802369bda3c diff --git a/vendor/masterminds/html5/src/HTML5/Parser/Tokenizer.php b/vendor/masterminds/html5/src/HTML5/Parser/Tokenizer.php index c42bc3d86..1f6868bc0 100644 --- a/vendor/masterminds/html5/src/HTML5/Parser/Tokenizer.php +++ b/vendor/masterminds/html5/src/HTML5/Parser/Tokenizer.php @@ -383,11 +383,8 @@ class Tokenizer } $mode = $this->events->startTag($name, $attributes, $selfClose); - // Should we do this? What does this buy that selfClose doesn't? - if ($selfClose) { - $this->events->endTag($name); - } elseif (is_int($mode)) { - // fprintf(STDOUT, "Event response says move into mode %d for tag %s", $mode, $name); + + if (is_int($mode)) { $this->setTextMode($mode, $name); }