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

Public Member Functions

 __clone ()
 
 cloneNodeData (bool $stripSealedFragments=false)
 Deep clone this object If $stripSealedFragments is true, sealed DOMFragment included in expanded attributes are deleted in the clone.
 
 getDataMw (Element $node)
 Get data meta wiki info from a node.
 
 getDataMwIfExists (Element $node)
 Get data meta wiki info from a node.
 
 setDataMw (Element $node, ?DataMw $dmw)
 Set data meta wiki info from a node.
 
 getDataParsoid (Element $node)
 Get data parsoid info from a node.
 
 setDataParsoid (Element $node, DataParsoid $dp)
 Set data parsoid info on a node.
 

Public Attributes

const PERSISTENT_ATTR_NAMES = [ 'parsoid', 'mw' ]
 
 $parsoid = null
 
 $mw = null
 

Member Function Documentation

◆ cloneNodeData()

Wikimedia\Parsoid\NodeData\NodeData::cloneNodeData ( bool $stripSealedFragments = false)

Deep clone this object If $stripSealedFragments is true, sealed DOMFragment included in expanded attributes are deleted in the clone.

Parameters
bool$stripSealedFragments
Returns
static

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