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

Static Public Member Functions

static getDiffMark (Node $node)
 Get a node's diff marker.
 
static hasDiffMarkers (Node $node)
 Check that the diff markers on the node exist.
 
static hasDiffMark (Node $node, string $mark)
 
static hasInsertedDiffMark (Node $node)
 
static maybeDeletedNode (?Node $node)
 
static isDeletedBlockNode (?Node $node)
 Is node a mw:DiffMarker node that represents a deleted block node? This annotation is added by the DOMDiff pass.
 
static directChildrenChanged (Node $node)
 
static onlySubtreeChanged (Element $node)
 
static subtreeUnchanged (Element $node)
 
static addDiffMark (Node $node, Env $env, string $mark)
 
static attribsEquals (Element $nodeA, Element $nodeB, array $ignoreableAttribs, array $specializedAttribHandlers)
 Attribute equality test.
 
static isDiffMarker (?Node $node, ?string $mark=null)
 Check a node to see whether it's a diff marker.
 

Member Function Documentation

◆ attribsEquals()

static Wikimedia\Parsoid\Html2Wt\DiffUtils::attribsEquals ( Element $nodeA,
Element $nodeB,
array $ignoreableAttribs,
array $specializedAttribHandlers )
static

Attribute equality test.

Parameters
Element$nodeA
Element$nodeB
array$ignoreableAttribs
array$specializedAttribHandlers
Returns
bool

◆ getDiffMark()

static Wikimedia\Parsoid\Html2Wt\DiffUtils::getDiffMark ( Node $node)
static

Get a node's diff marker.

Parameters
Node$node
Returns
?DataParsoidDiff

◆ hasDiffMarkers()

static Wikimedia\Parsoid\Html2Wt\DiffUtils::hasDiffMarkers ( Node $node)
static

Check that the diff markers on the node exist.

Parameters
Node$node
Returns
bool

◆ isDeletedBlockNode()

static Wikimedia\Parsoid\Html2Wt\DiffUtils::isDeletedBlockNode ( ?Node $node)
static

Is node a mw:DiffMarker node that represents a deleted block node? This annotation is added by the DOMDiff pass.

Parameters
?Node$node
Returns
bool

◆ isDiffMarker()

static Wikimedia\Parsoid\Html2Wt\DiffUtils::isDiffMarker ( ?Node $node,
?string $mark = null )
static

Check a node to see whether it's a diff marker.

Parameters
?Node$node
?string$mark
Returns
bool

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