이 문서는 아직 자원 봉사자들이 한국어로 번역하지 않았습니다. 참여해서 번역을 마치도록 도와 주세요!
English (US)의 문서도 읽어보세요.

The Node.lookupNamespaceURI() method accepts a prefix and returns the namespace URI associated with it on the given node if found (and null if not).

Syntax

var namespace = node.lookupNamespaceURI(prefix);

Parameters

prefix
The prefix to look for. If this parameter is null, the method will return the default namespace URI, if any.

Return value

A DOMString containing the the namespace URI. If the prefix is not found, it returns null.

Specification

Browser compatibility

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidEdge MobileFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
lookupNamespaceURIChrome Full support YesEdge Full support 12Firefox Full support YesIE ? Opera ? Safari ? WebView Android Full support YesChrome Android Full support YesEdge Mobile ? Firefox Android Full support YesOpera Android ? Safari iOS ? Samsung Internet Android ?

Legend

Full support  
Full support
Compatibility unknown  
Compatibility unknown

In Firefox, due to bug 312019, this method does not work with dynamically assigned namespaces (i.e., those set with Node.prefix).

문서 태그 및 공헌자

최종 변경자: mdnwebdocs-bot,