CSSNamespaceRule.prefix

The CSSNamespaceRule.prefix read-only property returns a DOMString with the name of the prefix associated to this namespace. If there is no such prefix, returns null.

Syntax

var prefix = CSSNamespaceRule.prefix

Returns

A DOMString containing the prefix associated to this namespace.

Specifications

Specification Status Comment
CSS Object Model (CSSOM)
The definition of 'namespaceURI' in that specification.
Working Draft Initial definition.

Browser compatibility

DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
prefixChrome Full support 47Edge Full support 12Firefox Full support 59IE No support NoOpera Full support 36Safari Full support YesWebView Android Full support 47Chrome Android Full support 47Firefox Android Full support 59Opera Android Full support 36Safari iOS Full support YesSamsung Internet Android Full support 5.0

Legend

Full support
Full support
No support
No support