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
| Desktop | Mobile | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
self | Chrome Full support Yes | Edge ? | Firefox Full support Yes | IE ? | Opera Full support Yes | Safari ? | WebView Android Full support Yes | Chrome Android Full support Yes | Firefox Android Full support Yes | Opera Android Full support Yes | Safari iOS ? | Samsung Internet Android Full support Yes |
Legend
- Full support
- Full support
- Compatibility unknown
- Compatibility unknown
