Parsoid
A bidirectional parser between wikitext and HTML5
|
All media should have a fixed structure: More...
Public Member Functions | |
__construct (Element $mediaElt, ?Element $linkElt=null, ?Element $containerElt=null) | |
isRedLink () | |
We were not able to fetch info for the title, so the media was considered missing and rendered as a span. | |
getResource () | |
getAlt () | |
getMediaUrl () | |
Static Public Member Functions | |
static | parse (Node $node) |
Public Attributes | |
$containerElt | |
$linkElt | |
$mediaElt | |
$captionElt | |
All media should have a fixed structure:
Pull out this fixed structure, being as generous as possible with possibly-broken HTML.
Wikimedia\Parsoid\Core\MediaStructure::__construct | ( | Element | $mediaElt, |
?Element | $linkElt = null, | ||
?Element | $containerElt = null ) |
Element | $mediaElt | |
?Element | $linkElt | |
?Element | $containerElt |
Wikimedia\Parsoid\Core\MediaStructure::getAlt | ( | ) |
Wikimedia\Parsoid\Core\MediaStructure::getMediaUrl | ( | ) |
Wikimedia\Parsoid\Core\MediaStructure::getResource | ( | ) |
Wikimedia\Parsoid\Core\MediaStructure::isRedLink | ( | ) |
We were not able to fetch info for the title, so the media was considered missing and rendered as a span.
|
static |
Node | $node |