Parsoid
A bidirectional parser between wikitext and HTML5
Loading...
Searching...
No Matches
Wikimedia\Parsoid\Ext\WTUtils Class Reference

This class provides helpers needed by extensions. More...

Static Public Member Functions

static isSealedFragmentOfType (Node $node, string $name)
 Is $node a sealed DOMFragment of a specific extension?
 
static hasVisibleCaption (Element $node)
 
static textContentFromCaption (Node $node)
 

Detailed Description

This class provides helpers needed by extensions.

These helpers help with extracting wikitext information from the DOM.

Member Function Documentation

◆ hasVisibleCaption()

static Wikimedia\Parsoid\Ext\WTUtils::hasVisibleCaption ( Element $node)
static
Parameters
Element$node
Returns
bool

◆ isSealedFragmentOfType()

static Wikimedia\Parsoid\Ext\WTUtils::isSealedFragmentOfType ( Node $node,
string $name )
static

Is $node a sealed DOMFragment of a specific extension?

Parameters
Node$node
string$name
Returns
bool

◆ textContentFromCaption()

static Wikimedia\Parsoid\Ext\WTUtils::textContentFromCaption ( Node $node)
static
Parameters
Node$node
Returns
string

The documentation for this class was generated from the following file: