Skip to content

Commit 074e67d

Browse files
committed
PICKME: Add is_quirks_mode method to processor
1 parent fdd004b commit 074e67d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/wp-includes/html-api/class-wp-html-tag-processor.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -537,6 +537,10 @@ class WP_HTML_Tag_Processor {
537537
*/
538538
protected $compat_mode = self::NO_QUIRKS_MODE;
539539

540+
public function is_quirks_mode() {
541+
return self::QUIRKS_MODE === $this->compat_mode;
542+
}
543+
540544
/**
541545
* Indicates whether the parser is inside foreign content,
542546
* e.g. inside an SVG or MathML element.

0 commit comments

Comments
 (0)