HTML DOM 속성
속성 개체
HTML DOM에서 Attr 객체 는 HTML 속성을 나타냅니다.
HTML 속성은 항상 HTML 요소에 속합니다.
NamedNodeMap 객체
HTML DOM에서 NamedNodeMap 객체 는 요소 속성 노드의 정렬되지 않은 컬렉션을 나타냅니다.
NamedNodeMap의 노드는 이름 또는 인덱스(숫자)로 액세스할 수 있습니다.
속성 속성 및 메서드
Property | Description |
---|---|
isId | Deprecated |
name | Returns an attribute's name |
value | Sets or returns an attribute's value |
specified | Returns true if the attribute is specified |
NamedNodeMap 속성 및 메서드
Method | Description |
---|---|
getNamedItem() | Returns an attribute node (by name) from a NamedNodeMap |
item() | Returns an attribute node (by index) from a NamedNodeMap |
length | Returns the number of attributes in a NamedNodeMap |
removeNamedItem() | Removes an attribute (node) |
setNamedItem() | Sets an attribute (node) by name |