Parsoid
A bidirectional parser between wikitext and HTML5
|
This class provides DOM data helpers needed by extensions. More...
Static Public Member Functions | |
static | getDataParsoid (Element $elt) |
Get data parsoid info from DOM element. | |
static | setDataParsoid (Element $elt, ?DataParsoid $dp) |
Set data parsoid info on a DOM element. | |
static | getDataMw (Element $elt) |
Get data meta wiki info from a DOM element. | |
static | dataMwExists (Element $elt) |
Check if there is meta wiki info on a DOM element. | |
static | setDataMw (Element $elt, ?DataMw $dmw) |
Set data meta wiki info from a DOM element. | |
static | getDataParsoidDiff (Element $elt) |
Get data diff info from a DOM element. | |
static | setDataParsoidDiff (Element $elt, ?stdClass $diffObj) |
Set data diff info on a DOM element. | |
static | noAttrs (Element $elt) |
Does this node have any attributes? This method is the preferred way of interrogating this property since Parsoid DOMs might have Parsoid-internal attributes added. | |
static | cloneNode (Element $elt, bool $deep) |
Clones a node and its data bag. | |
This class provides DOM data helpers needed by extensions.
These helpers support fetching / updating attributes of DOM nodes.
|
static |
Clones a node and its data bag.
Element | $elt | |
bool | $deep |
|
static |
Check if there is meta wiki info on a DOM element.
Element | $elt |
|
static |
Get data meta wiki info from a DOM element.
Element | $elt |
|
static |
Get data parsoid info from DOM element.
Element | $elt |
|
static |
Get data diff info from a DOM element.
Element | $elt |
|
static |
Does this node have any attributes? This method is the preferred way of interrogating this property since Parsoid DOMs might have Parsoid-internal attributes added.
Element | $elt |
Set data meta wiki info from a DOM element.
Element | $elt | |
?DataMw | $dmw | data-mw |
|
static |
Set data parsoid info on a DOM element.
Element | $elt | |
?DataParsoid | $dp | data-parsoid |
|
static |
Set data diff info on a DOM element.
Element | $elt | |
?stdClass | $diffObj | data-parsoid-diff object |