YouTip LogoYouTip

Dom Attribute

```html XML DOM – Attr Object

XML DOM – Attr Object

-- Learn not only technology, but also dreams!

XML DOM Tutorial

XML DOM Tutorial DOM Introduction DOM Nodes DOM Node Tree DOM Parser DOM Load Functions DOM Methods DOM Access Nodes DOM Node Information DOM Node List and Named Node Map DOM Traverse Node Tree DOM Browser Differences DOM Navigate Nodes DOM Get Node Values DOM Change Node Values DOM Remove Nodes DOM Replace Nodes DOM Create Nodes DOM Add Nodes DOM Clone Nodes DOM HttpRequest Object DOM Node Types DOM Node Object DOM NodeList Object DOM NamedNodeMap Object DOM Document Object DOM DocumentImplementation Object DOM DocumentType Object DOM ProcessingInstruction Object DOM Element Object DOM Attr Object DOM Text Object DOM CDATASection Object DOM Comment Object DOM HttpRequest Object DOM Parse Error Object DOM Parser Errors DOM Summary DOM Examples DOM Validate XML XML DOM – Element Object XML DOM – Text Object

XML DOM - Attr Object


Attr Object

The Attr object represents an attribute of an Element object. The permissible values of an attribute are usually defined in a DTD.

Since the Attr object is also a node, it inherits properties and methods from the Node object. However, attributes cannot have parent nodes, and attributes are not considered child nodes of an element; for many Node properties, they will return null.

Attr Object Properties

Property Description
baseURI Returns the absolute base URI of an element
```
← Dom TextDom Element β†’