stx ) && $dp->stx === 'html'; } /** * Run a node through {@link #hasLiteralHTMLMarker}. * @param DOMNode|null $node * @return bool */ public static function isLiteralHTMLNode( ?DOMNode $node ): bool { return ( $node && $node instanceof DOMElement && self::hasLiteralHTMLMarker( DOMDataUtils::getDataParsoid( $node ) ) ); } /** * @param DOMNode $node * @return bool */ public static function isZeroWidthWikitextElt( DOMNode $node ): bool { return isset( Consts::$ZeroWidthWikitextTags[$node->nodeName] ) && !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 `