stx ) && $dp->stx === 'html'; } /** * Run a node through {@link #hasLiteralHTMLMarker}. * @param ?Node $node * @return bool */ public static function isLiteralHTMLNode( ?Node $node ): bool { return $node instanceof Element && self::hasLiteralHTMLMarker( DOMDataUtils::getDataParsoid( $node ) ); } /** * @param Node $node * @return bool */ public static function isZeroWidthWikitextElt( Node $node ): bool { return isset( Consts::$ZeroWidthWikitextTags[DOMCompat::nodeName( $node )] ) && !self::isLiteralHTMLNode( $node ); } /** * Is `$node` a block node that is also visible in wikitext? * An example of an invisible block node is a `

`-tag that * Parsoid generated, or a `