Skip to content

Commit 2f45446

Browse files
committed
Fix quirks mode check
1 parent d3c4ec1 commit 2f45446

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

html-api-debugger/html-api-integration.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ function get_tree( string $html, array $options ): array {
9393
$doctype_name = $doctype->name;
9494
$doctype_public_identifier = $doctype->public_identifier;
9595
$doctype_system_identifier = $doctype->system_identifier;
96-
if ( $doctype->indicated_compatability_mode === 'no-quirks' ) {
96+
if ( $doctype->indicated_compatability_mode !== 'quirks' ) {
9797
$compat_mode = 'CSS1Compat';
9898
}
9999
break;
@@ -188,7 +188,7 @@ function get_tree( string $html, array $options ): array {
188188
$doctype_name = $doctype->name;
189189
$doctype_public_identifier = $doctype->public_identifier;
190190
$doctype_system_identifier = $doctype->system_identifier;
191-
if ( $doctype->indicated_compatability_mode === 'no-quirks' ) {
191+
if ( $doctype->indicated_compatability_mode !== 'quirks' ) {
192192
$compat_mode = 'CSS1Compat';
193193
}
194194

0 commit comments

Comments
 (0)