self

The self axis indicates the context node itself. It can be abbreviated as a single period (.).

Specifications

Specification Status Comment
XPath 3.1
The definition of 'self' in that specification.
Recommendation  
XPath 3.0
The definition of 'self' in that specification.
Recommendation  
XPath 2.0
The definition of 'self' in that specification.
Recommendation  
XPath 1.0
The definition of 'self' in that specification.
Recommendation Initial definition.

Browser compatibility

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
selfChrome Full support YesEdge ? Firefox Full support YesIE ? Opera Full support YesSafari ? WebView Android Full support YesChrome Android Full support YesFirefox Android Full support YesOpera Android Full support YesSafari iOS ? Samsung Internet Android Full support Yes

Legend

Full support  
Full support
Compatibility unknown  
Compatibility unknown