Skip to content

Commit 39cf890

Browse files
committed
Remove the packaged release autoloader
Because this file is only relevant for the packaged release it's being moved to the utils project.
1 parent 4bddbda commit 39cf890

File tree

2 files changed

+1
-29
lines changed

2 files changed

+1
-29
lines changed

autoload.inc.php

Lines changed: 0 additions & 28 deletions
This file was deleted.

src/Dompdf.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ public function loadHtml($str, $encoding = 'UTF-8')
465465
// https://developer.mozilla.org/en/mozilla's_quirks_mode
466466
$quirksmode = false;
467467

468-
if ($this->options->isHtml5ParserEnabled()) {
468+
if ($this->options->isHtml5ParserEnabled() && class_exists("HTML5_Tokenizer", false)) {
469469
$tokenizer = new HTML5_Tokenizer($str);
470470
$tokenizer->parse();
471471
$doc = $tokenizer->save();

0 commit comments

Comments
 (0)