Skip to content

Commit 10dc771

Browse files
committed
Fix argument propagation for PHP implementation, patch by datacompboy.
1 parent 36ff984 commit 10dc771

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

library/HTML5/Tokenizer.php

+1
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ class HTML5_Tokenizer {
8787
public function __construct($data, $builder = null) {
8888
$this->stream = new HTML5_InputStream($data);
8989
if (!$builder) $this->tree = new HTML5_TreeBuilder;
90+
else $this->tree = $builder;
9091
$this->content_model = self::PCDATA;
9192
}
9293

0 commit comments

Comments
 (0)