Dom-attribute-object

提供:Dev Guides
移動先:案内検索

DOM-属性オブジェクト

Attr_インターフェイスは、Elementオブジェクトの属性を表します。 通常、属性の許容値は、ドキュメントに関連付けられたスキーマで定義されます。 _Attr_オブジェクトは、実際にはそれらが記述する要素の子ノードではないため、ドキュメントツリーの一部とは見なされません。 したがって、子ノード_parentNode _、 previousSibling_および_nextSibling_の属性値は_null_です。

属性

次の表は、_Attribute_オブジェクトの属性を示しています-

Attribute Type Description
name DOMString This gives the name of the attribute.
specified boolean It is a boolean value which returns true if the attribute value exists in the document.
value DOMString Returns the value of the attribute.
ownerElement Element It gives the node to which attribute is associated or null if attribute is not in use.
isId boolean It returns whether the attribute is known to be of type ID (i.e. to contain an identifier for its owner element) or not.