set:intersection()

set:intersection() returns the intersection of two node-sets. In other words, it returns a node-set containing all the nodes that exits in both nodeSet1 and nodeSet2.

Syntax

set:intersection(nodeSet1, nodeSet2)

Arguments

nodeSet1
The first node-set.
nodeSet2
The second node-set.

Returns

A node-set containing the nodes that existed in both nodeSet1 and in nodeSet2.

Specifications

EXSLT - SET:INTERSECTION

Browser compatibility

DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
set:intersection()Chrome ? Edge ? Firefox Full support 3IE ? Opera ? Safari ? WebView Android ? Chrome Android ? Firefox Android Full support 4Opera Android ? Safari iOS ? Samsung Internet Android ?

Legend

Full support
Full support
Compatibility unknown
Compatibility unknown