Parsoid
A bidirectional parser between wikitext and HTML5
|
Factory for picking the right DOMHandler for a DOM element. More...
Public Member Functions | |
newFromTagHandler (string $tag) | |
Get the DOMHandler that's appropriate for serializing a HTML tag. | |
Factory for picking the right DOMHandler for a DOM element.
FIXME: memoize handlers, maybe?
Wikimedia\Parsoid\Html2Wt\DOMHandlers\DOMHandlerFactory::newFromTagHandler | ( | string | $tag | ) |
Get the DOMHandler that's appropriate for serializing a HTML tag.
Porting note: this is the equivalent of DOMHandlers.tagHandlers[tag].
string | $tag |