Parsoid
A bidirectional parser between wikitext and HTML5
Loading...
Searching...
No Matches
Wikimedia\Parsoid\NodeData\TempData Class Reference

Public Member Functions

 getFlag (int $flag)
 Check whether a bit is set in $this->bits.
 
 setFlag (int $flag, bool $value=true)
 Set a bit in $this->bits.
 
 setTagData (string $key, $data)
 Set a tag attribute for a specific extension with a given key.
 
 getTagData (string $key)
 Get a tag attribute for a specific extension tag with a given key.
 

Public Attributes

const IS_NEW = 1 << 0
 Whether a DOM node is a new node added during an edit session.
 
const NO_ATTRS = 1 << 1
 The tokenizer sets this on table cells originating in wikitext-style syntax with no attributes set in the input.
 
const FAILED_REPARSE = 1 << 2
 This is set on cell elements that could not be combined with the previous cell.
 
const WRAPPER = 1 << 3
 This is set on span tags that are created by PipelineUtils::addSpanWrappers().
 
const SET_DSR = 1 << 4
 This is set on wrapper tokens created by PipelineUtils::encapsulateExpansionHTML() to propagate the setDSR option to that function.
 
const FROM_CACHE = 1 << 5
 This is set on wrapper tokens created by PipelineUtils::encapsulateExpansionHTML() to propagate the fromCache option to that function.
 
const LINTED = 1 << 6
 A flag private to Linter, used to suppress duplicate messages.
 
const PROCESSED_TIDY_WS_BUG = 1 << 7
 A flag private to Linter to help it traverse a DOM.
 
const IN_TRANSCLUSION = 1 << 8
 This is set on all elements that originate in a template.
 
const FROM_FOSTER = 1 << 9
 MarkFosteredContent sets this on meta mw:Transclusion tags.
 
const BOGUS_PX = 1 << 10
 Used to indicate that media dimensions have redundant units.
 
 $tagId
 
 $bits = 0
 

Member Function Documentation

◆ getFlag()

Wikimedia\Parsoid\NodeData\TempData::getFlag ( int $flag)

Check whether a bit is set in $this->bits.

Parameters
int$flag
Returns
bool

◆ getTagData()

Wikimedia\Parsoid\NodeData\TempData::getTagData ( string $key)

Get a tag attribute for a specific extension tag with a given key.

Parameters
string$keyidentifier to support a map for multiple tags
Returns
mixed

◆ setFlag()

Wikimedia\Parsoid\NodeData\TempData::setFlag ( int $flag,
bool $value = true )

Set a bit in $this->bits.

Parameters
int$flag
bool$value

◆ setTagData()

Wikimedia\Parsoid\NodeData\TempData::setTagData ( string $key,
$data )

Set a tag attribute for a specific extension with a given key.

Parameters
string$keyidentifier to support a map for multiple extensions
mixed$data

Member Data Documentation

◆ FAILED_REPARSE

const Wikimedia\Parsoid\NodeData\TempData::FAILED_REPARSE = 1 << 2

This is set on cell elements that could not be combined with the previous cell.

Private to TableFixups.

◆ FROM_FOSTER

const Wikimedia\Parsoid\NodeData\TempData::FROM_FOSTER = 1 << 9

MarkFosteredContent sets this on meta mw:Transclusion tags.

It is only used in an assertion.

◆ IN_TRANSCLUSION

const Wikimedia\Parsoid\NodeData\TempData::IN_TRANSCLUSION = 1 << 8

This is set on all elements that originate in a template.

It controls the insertion of mw:Transclusion markers in MarkFosteredContent.

◆ IS_NEW

const Wikimedia\Parsoid\NodeData\TempData::IS_NEW = 1 << 0

Whether a DOM node is a new node added during an edit session.

figureHandler() sets this on synthetic div elements.


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