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 AndroidEdge MobileFirefox for AndroidOpera for AndroidiOS SafariSamsung Internet
Basic supportChrome Full support YesEdge ? Firefox Full support YesIE ? Opera Full support YesSafari ? WebView Android ? Chrome Android Full support YesEdge Mobile ? Firefox Android Full support YesOpera Android Full support YesSafari iOS ? Samsung Internet Android ?

Legend

Full support  
Full support
Compatibility unknown  
Compatibility unknown

Document Tags and Contributors

Tags: 
Contributors to this page: ExE-Boss, SphinxKnight, Fredchat, Sheppy, Mgjbot, Takenbot, Ptak82, CitizenK, Dria
Last updated by: ExE-Boss,