MDN’s new design is in Beta! A sneak peek: https://blog.mozilla.org/opendesign/mdns-new-design-beta/

Node.nodePrincipal

这篇翻译不完整。请帮忙从英语翻译这篇文章

非标准
该特性是非标准的,请尽量不要在生产环境中使用它!

The Node.nodePrincipal read-only property returns the nsIPrincipal object representing current security context of the node.

Note: This property exists on all nodes (HTML, XUL, SVG, MathML, etc.), but only if the script trying to use it has chrome privileges.

Syntax

principalObj = element.nodePrincipal

Notes

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.

Specification

Not in any specification.

 

文档标签和贡献者

 此页面的贡献者: teoli, ziyunfei, AlexChao
 最后编辑者: ziyunfei,