--- title: Entity slug: Web/API/Entity translation_of: Web/API/Entity ---

{{APIRef("DOM")}} {{draft}} {{obsolete_header}}

对DTD实体的只读引用. 也继承 {{domxref("Node")}} 的方法和属性。

属性

{{domxref("Entity.publicId")}} {{ReadOnlyInline}}
Is a {{domxref("DOMString")}}.
{{domxref("Entity.systemId")}} {{ReadOnlyInline}}
Is a {{domxref("DOMString")}}.
{{domxref("Entity.notationName")}}{{ReadOnlyInline}}
Is a {{domxref("DOMString")}}.
{{domxref("Entity.inputEncoding")}}{{ReadOnlyInline}}
Is a {{domxref("DOMString")}}.
{{domxref("Entity.xmlEncoding")}}{{ReadOnlyInline}}
Is a {{domxref("DOMString")}}.
{{domxref("Entity.xmlVersion")}}{{ReadOnlyInline}}
Is a {{domxref("DOMString")}}.

规范

Specification Status Comment
{{SpecName("DOM3 Core", "core.html#ID-527DCFF2", "Entity")}} {{Spec2("DOM3 Core")}} inputEncoding, xmlEncoding, and xmlVersion were added
{{SpecName("DOM2 Core", "core.html#ID-527DCFF2", "Entity")}} {{Spec2("DOM2 Core")}} No change
{{SpecName('DOM1', 'level-one-core.html#ID-527DCFF2', 'Entity')}} {{Spec2('DOM1')}} Initial definition