Module: wt2html/pp/processors/markFosteredContent

Non-IEW (inter-element-whitespace) can only be found in and

tags in a table. If found elsewhere within a table, such content will be moved out of the table and be "adopted" by the table's sibling ("foster parent"). The content that gets adopted is "fostered content".

http://www.w3.org/TR/html5/syntax.html#foster-parent

Methods

(inner) createNodeWithAttributes()

Create a new DOM node with attributes.

Create a new DOM node with attributes.

Source:

(inner) markFosteredContent(node, env)

Searches for FosterBoxes and does two things when it hits one:

  • Marks all nextSiblings as fostered until the accompanying table.

Searches for FosterBoxes and does two things when it hits one:

  • Marks all nextSiblings as fostered until the accompanying table.
  • Wraps the whole thing (table + fosterbox) with transclusion metas if there is any fostered transclusion content.
Parameters:
Name Type Description
node Node
env MWParserEnvironment
Source: