Parsoid
A bidirectional parser between wikitext and HTML5
|
This is an extension of JsonCodecable which adds some properties useful for rich attributes: More...
Public Member Functions | |
flatten () | |
Provide a flattened "plain string" form of this data for use as the value of a compatibility attribute to implement HTML semantics. | |
Static Public Member Functions | |
static | defaultValue () |
Provide a constructor for a default value for objects of this type. | |
static | hint () |
Provide a JsonCodec Hint for serializing objects of this type. | |
This is an extension of JsonCodecable which adds some properties useful for rich attributes:
::flatten()
method which provides a plain string form of the data which is used for compatibility with HTML semantics, and::hint()
method which is used to provide additional class hint information for object. The default class hint is the name of the class, but if you want to add modifiers, or perhaps use a superclass as a hint, this method will allow that sort of customization.
|
static |
Provide a constructor for a default value for objects of this type.
Implemented in Wikimedia\Parsoid\NodeData\DataMwI18n, and Wikimedia\Parsoid\NodeData\DataParsoidDiff.
Wikimedia\Parsoid\Utils\RichCodecable::flatten | ( | ) |
Provide a flattened "plain string" form of this data for use as the value of a compatibility attribute to implement HTML semantics.
Implemented in Wikimedia\Parsoid\NodeData\DataMwI18n, and Wikimedia\Parsoid\NodeData\DataParsoidDiff.
|
static |
Provide a JsonCodec Hint
for serializing objects of this type.
Implemented in Wikimedia\Parsoid\NodeData\DataMwI18n, and Wikimedia\Parsoid\NodeData\DataParsoidDiff.