• Skip to main content
  • Skip to search
  • Skip to select language
    • Technologies Overview
    • HTML
    • CSS
    • JavaScript
    • Graphics
    • HTTP
    • APIs
    • Browser Extensions
    • MathML
    • Learn web development
    • Tutorials
    • References
    • Developer Guides
    • Accessibility
    • Game development
    • ...more docs
    • Send Feedback
    • Contribute to MDN
    • Report a content issue 🌐
    • Report a platform issue 🌐
  1. Web technology for developers
  2. XPath
  3. Axes
  4. self
  • Change language

Table of contents

  • Specifications

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.

Found a problem with this page?

  • Edit on GitHub
  • Source on GitHub
  • Report a problem with this content on GitHub
  • Want to fix the problem yourself? See our Contribution guide.

Last modified: Oct 8, 2021, by MDN contributors

Change your language

Related Topics

  1. Axes
    1. Axes
    2. ancestor-or-self
    3. ancestor
    4. attribute
    5. child
    6. descendant-or-self
    7. descendant
    8. following-sibling
    9. following
    10. namespace
    11. parent
    12. preceding-sibling
    13. preceding
    14. self
  2. Comparison of CSS Selectors and XPath
  3. Functions
    1. Functions
    2. boolean
    3. ceiling
    4. choose
    5. concat
    6. contains
    7. count
    8. current
    9. document
    10. element-available
    11. false
    12. floor
    13. format-number
    14. function-available
    15. generate-id
    16. id
    17. key
    18. lang
    19. last
    20. local-name
    21. name
    22. namespace-uri
    23. normalize-space
    24. not
    25. number
    26. position
    27. round
    28. starts-with
    29. string-length
    30. string
    31. substring-after
    32. substring-before
    33. substring
    34. sum
    35. system-property
    36. translate
    37. true
    38. unparsed-entity-url
  4. Introduction to using XPath in JavaScript
  5. XPath snippets
  • Web Technologies
  • Learn Web Development
  • About MDN
  • Feedback
  • About
  • MDN Web Docs Store
  • Contact Us
  • Firefox

MDN

  • MDN on Twitter
  • MDN on Github

Mozilla

  • Mozilla on Twitter
  • Mozilla on Instagram

© 2005-2022 Mozilla and individual contributors. Content is available under these licenses.

  • Terms
  • Privacy
  • Cookies