W3cubDocs

/DOM

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 compatibilityUpdate compatibility data on GitHub

Desktop
Chrome Edge Firefox Internet Explorer Opera Safari
Basic support 47 12 59 No 36 ?
Mobile
Android webview Chrome for Android Edge Mobile Firefox for Android Opera for Android iOS Safari Samsung Internet
Basic support 47 47 Yes 59 36 ? 5.0

© 2005–2018 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/CSSNamespaceRule/prefix