aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/conflicting/web/api/node_378aed5ed6869e50853edbc988cf9556
diff options
context:
space:
mode:
authorFlorian Merz <me@fiji-flo.de>2021-02-11 12:56:40 +0100
committerFlorian Merz <me@fiji-flo.de>2021-02-11 12:56:40 +0100
commit310fd066e91f454b990372ffa30e803cc8120975 (patch)
treed5d900deb656a5da18e0b60d00f0db73f3a2e88e /files/zh-cn/conflicting/web/api/node_378aed5ed6869e50853edbc988cf9556
parent8260a606c143e6b55a467edf017a56bdcd6cba7e (diff)
downloadtranslated-content-310fd066e91f454b990372ffa30e803cc8120975.tar.gz
translated-content-310fd066e91f454b990372ffa30e803cc8120975.tar.bz2
translated-content-310fd066e91f454b990372ffa30e803cc8120975.zip
unslug zh-cn: move
Diffstat (limited to 'files/zh-cn/conflicting/web/api/node_378aed5ed6869e50853edbc988cf9556')
-rw-r--r--files/zh-cn/conflicting/web/api/node_378aed5ed6869e50853edbc988cf9556/index.html19
1 files changed, 19 insertions, 0 deletions
diff --git a/files/zh-cn/conflicting/web/api/node_378aed5ed6869e50853edbc988cf9556/index.html b/files/zh-cn/conflicting/web/api/node_378aed5ed6869e50853edbc988cf9556/index.html
new file mode 100644
index 0000000000..58844aef2e
--- /dev/null
+++ b/files/zh-cn/conflicting/web/api/node_378aed5ed6869e50853edbc988cf9556/index.html
@@ -0,0 +1,19 @@
+---
+title: Node.nodePrincipal
+slug: Web/API/Node/nodePrincipal
+translation_of: Web/API/Node
+translation_of_original: Web/API/Node/nodePrincipal
+---
+<div>
+ {{APIRef}}{{Fx_minversion_header(3)}}{{Non-standard_header}}
+ <p>The <code><strong>Node.nodePrincipal</strong></code> read-only property returns the {{Interface("nsIPrincipal")}} object representing current security context of the node.</p>
+ <p>{{Note("This property exists on all nodes (HTML, XUL, SVG, MathML, etc.), but only if the script trying to use it has chrome privileges.")}}</p>
+ <h2 id="Syntax" name="Syntax">Syntax</h2>
+ <pre class="syntaxbox"><i>principalObj</i> = element.nodePrincipal
+</pre>
+ <h2 id="Notes" name="Notes">Notes</h2>
+ <p>This property is read-only; attempting to write to it will throw an exception. In addition, this property may only be accessed from privileged code.</p>
+ <h2 id="Specification" name="Specification">Specification</h2>
+ <p>Not in any specification.</p>
+</div>
+<p> </p>