• Skip to main content
  • Skip to search
    • 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 开发技术
  2. Web API 接口参考
  3. Node
  4. Node.lookupNamespaceURI
  • Change language
  • View in English

Node.lookupNamespaceURI

返回当前节点上与指定命名空间前缀绑定的命名空间URI,如果没有,返回null,如果参数为null,返回默认的命名空间.

根据 bug 312019, 该方法对动态指定的命名空间不起作用.(也就是通过Node.prefix指定的).

相关链接

  • http://www.w3.org/TR/DOM-Level-3-Cor...upNamespaceURI
  • Code snippets: lookupNamespaceURI

Found a problem with this page?

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

Last modified: Apr 9, 2021, by MDN contributors

Change your language

Related Topics

  1. Document Object Model
  2. Node
  3. 属性
    1. baseURI
    2. childNodes
    3. firstChild
    4. isConnected
    5. lastChild
    6. nextSibling
    7. nodeName
    8. nodeType
    9. nodeValue
    10. ownerDocument
    11. parentElement
    12. parentNode
    13. previousSibling
    14. textContent
  4. 方法
    1. appendChild()
    2. cloneNode()
    3. compareDocumentPosition()
    4. contains()
    5. getRootNode()
    6. This is an obsolete API and is no longer guaranteed to work. getUserData()
    7. hasChildNodes()
    8. insertBefore()
    9. isDefaultNamespace()
    10. isEqualNode()
    11. isSameNode()
    12. This is an obsolete API and is no longer guaranteed to work. isSupported()
    13. lookupNamespaceURI()
    14. lookupPrefix()
    15. normalize()
    16. removeChild()
    17. replaceChild()
    18. This is an obsolete API and is no longer guaranteed to work. setUserData()
  5. 继承
    1. EventTarget
  6. Related pages for DOM
    1. AbortController
    2. AbortSignal
    3. AbstractRange
    4. Attr
    5. ByteString
    6. CDATASection
    7. CSSPrimitiveValue
    8. CSSValue
    9. CSSValueList
    10. CharacterData
    11. ChildNode
    12. Comment
    13. CustomEvent
    14. DOMConfiguration
    15. DOMError
    16. DOMErrorHandler
    17. DOMException
    18. DOMImplementation
    19. DOMImplementationList
    20. DOMImplementationRegistry
    21. DOMImplementationSource
    22. DOMLocator
    23. DOMObject
    24. DOMParser
    25. DOMPoint
    26. DOMPointInit
    27. DOMPointReadOnly
    28. DOMRect
    29. DOMString
    30. DOMTimeStamp
    31. DOMTokenList
    32. DOMUserData
    33. Document
    34. DocumentFragment
    35. DocumentType
    36. Element
    37. ElementTraversal
    38. Entity
    39. EntityReference
    40. Event
    41. EventTarget
    42. HTMLCollection
    43. MutationObserver
    44. NodeFilter
    45. NodeIterator
    46. NodeList
    47. ProcessingInstruction
    48. PromiseResolver
    49. Range
    50. StaticRange
    51. Text
    52. TextDecoder
    53. TextEncoder
    54. TimeRanges
    55. TreeWalker
    56. TypeInfo
    57. USVString
    58. UserDataHandler
    59. XMLDocument
  • Web Technologies
  • Learn Web Development
  • About MDN
  • Feedback
  • About
  • MDN Web Docs Store
  • Contact Us
  • Firefox

MDN

Mozilla

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

  • Terms
  • Privacy
  • Cookies