Notice:
The WebPlatform project has been discontinued when the Stewards partnership agreement ended in September 2015. This site has been frozen, and the assets we have created will remain.

getContent

Jump to: navigation, search

getContent()

This article is Ready to Use.

W3C Working Draft

Summary

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

Method of apis/css-regions/NamedFlow

Syntax

var elements = flow.();


Return Value

Returns an object of type function

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:

JavaScript

// 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

Specification Status Related Changes
CSS Regions Module Level 1 W3C Working Draft

See also

Related articles

Regions













External resources