Skip to content

Commit 9cbc3bc

Browse files
committed
fix some test skipping
1 parent 93996ba commit 9cbc3bc

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

tests/phpunit/tests/html-api/wpHtmlProcessorHtml5lib.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ public static function build_html5_treelike_string( $fragment_context, $html ) {
139139
$indent = ' ';
140140

141141
while ( $processor->next_token() ) {
142-
if ( $processor->get_last_error() !== null ) {
142+
if ( ! is_null( $processor->get_last_error() ) ) {
143143
return null;
144144
}
145145

@@ -205,10 +205,6 @@ public static function build_html5_treelike_string( $fragment_context, $html ) {
205205
}
206206
}
207207

208-
if ( WP_HTML_Processor::ERROR_UNSUPPORTED === $processor->get_last_error() ) {
209-
return null;
210-
}
211-
212208
if ( $processor->paused_at_incomplete_token() ) {
213209
return null;
214210
}

0 commit comments

Comments
 (0)