Returns the static sequence of regions into which content flows.
Method of apis/css-regions/NamedFlowapis/css-regions/NamedFlow
Syntaxvar regions = flow.getRegions();
Return Value
Returns an object of type functionfunction
Returns the static sequence of regions into which content flows. The regions are returned in document order.
ExamplesRemove the first empty node from a flow:
var flow = document.getNamedFlows().namedItem('main');
var index = flow.firstEmptyRegionIndex;
if (index !== -1) {
var emptyRegion = flow.getRegions()[index];
emptyRegion.parentNode.removeChild(emptyRegion);
}
Related specifications
getRegions()
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4