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

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.
 

Detailed Description

Factory for picking the right DOMHandler for a DOM element.

FIXME: memoize handlers, maybe?

Member Function Documentation

◆ newFromTagHandler()

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].

Parameters
string$tag
Returns
DOMHandler|null

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