This page is Ready to Use

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

getContent()

Summary

Returns a static collection of nodes representing the flow’s source content.

Method of apis/css-regions/NamedFlowapis/css-regions/NamedFlow

Syntax

var elements = flow.getContent();

Return Value

Returns an object of type functionfunction

Returns a static collection of nodes representing the flow’s source content.

Examples

Get the last source element whose flow-into adds it to the flow:

// get flow:
var flow = document.getNamedFlows().namedItem('main');
// get all flow-into elements:
var elements = flow.getContent();
// of these, get last element:
var lastElement = elements[elements.length-1];

Related specifications

CSS Regions Module Level 1
W3C Working Draft

See also

Related articles

Regions

External resources